mirror of
				https://github.com/gofiber/storage.git
				synced 2025-10-31 11:46:32 +08:00 
			
		
		
		
	Compare commits
	
		
			153 Commits
		
	
	
		
			s3/v1.4.3
			...
			badger/v1.
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | 98bebea186 | ||
|   | 56a4cbfc19 | ||
|   | 60220b5b83 | ||
|   | 304146395d | ||
|   | a5635a782f | ||
|   | df66fb784c | ||
|   | 9a9a1ce716 | ||
|   | 5c3a1ca3eb | ||
|   | 95226eed34 | ||
|   | 33a61daca9 | ||
|   | 6c71397839 | ||
|   | 9fba60d754 | ||
|   | a115ee2fba | ||
|   | 31e2d80802 | ||
|   | bbbd3e8ad1 | ||
|   | 9edc233ee7 | ||
|   | c030fac063 | ||
|   | 36401996a5 | ||
|   | c4a57d2fbe | ||
|   | f0e4fda91b | ||
|   | d95d8e93b9 | ||
|   | 2ce3ae15bf | ||
|   | c592c8b549 | ||
|   | 9f8afc3ce9 | ||
|   | 2b4e7abe21 | ||
|   | 3c0ea943b0 | ||
|   | 9757af64f1 | ||
|   | b24255db5e | ||
|   | 5aa726f723 | ||
|   | e42a4816ac | ||
|   | 4137501136 | ||
|   | f72d263ecb | ||
|   | 41bc99cc17 | ||
|   | e71c5057ac | ||
|   | 4190ba4790 | ||
|   | 1f1e7edd2a | ||
|   | b4151987ad | ||
|   | 6fbb923377 | ||
|   | 1743f57c9c | ||
| ![dependabot[bot]](/assets/img/avatar_default.png)  | 4c06b1802d | ||
|   | 5c222a8684 | ||
| ![dependabot[bot]](/assets/img/avatar_default.png)  | ad837a4f68 | ||
|   | 8f9884ade2 | ||
| ![dependabot[bot]](/assets/img/avatar_default.png)  | 8ae4fed70a | ||
|   | 349820a7d1 | ||
| ![dependabot[bot]](/assets/img/avatar_default.png)  | 5bbdaaf114 | ||
|   | 455eb537ac | ||
| ![dependabot[bot]](/assets/img/avatar_default.png)  | a37efaa61b | ||
|   | 3a98e867cb | ||
|   | 15d7b9ed6d | ||
|   | cc87dce84d | ||
|   | c651866df3 | ||
|   | e19782fb04 | ||
| ![dependabot[bot]](/assets/img/avatar_default.png)  | 17d0b6dd0b | ||
|   | 201e025ee8 | ||
|   | 448c43ff43 | ||
|   | cd292b687f | ||
|   | 19ee2e65b8 | ||
|   | a276545019 | ||
|   | b892818d23 | ||
|   | 28b8432101 | ||
| ![dependabot[bot]](/assets/img/avatar_default.png)  | 772f808741 | ||
|   | cdd6008fbb | ||
|   | e1214a9ccc | ||
|   | 426e8266c5 | ||
|   | 821232a3c4 | ||
|   | 6a8f254286 | ||
|   | 1af4aa7ac9 | ||
|   | b031cab8df | ||
|   | 56a60b7f0a | ||
| ![dependabot[bot]](/assets/img/avatar_default.png)  | 1e6d856921 | ||
|   | 53ecdac6f1 | ||
|   | 3b6636b0ef | ||
| ![dependabot[bot]](/assets/img/avatar_default.png)  | 5102a5d757 | ||
| ![dependabot[bot]](/assets/img/avatar_default.png)  | 869d99ce0f | ||
|   | 2d2739c33a | ||
| ![dependabot[bot]](/assets/img/avatar_default.png)  | b7bd9bd90e | ||
|   | b7954d8a33 | ||
|   | 7b7c79acb3 | ||
| ![dependabot[bot]](/assets/img/avatar_default.png)  | 4b76119c68 | ||
|   | 10b721602f | ||
| ![dependabot[bot]](/assets/img/avatar_default.png)  | 21297be965 | ||
| ![dependabot[bot]](/assets/img/avatar_default.png)  | 85f3189476 | ||
|   | cf1a4a6345 | ||
|   | 9294e3e676 | ||
| ![dependabot[bot]](/assets/img/avatar_default.png)  | 85c4df40cd | ||
| ![dependabot[bot]](/assets/img/avatar_default.png)  | 62e0250560 | ||
|   | cd72744191 | ||
|   | c38fc91d9d | ||
|   | b76d1302b1 | ||
|   | bbbcbd2b23 | ||
|   | 6c53b6664f | ||
|   | 6f49a10c0c | ||
|   | ad190e72fe | ||
|   | 259782bc5e | ||
|   | 98ed2982ec | ||
|   | 27dd8f698e | ||
|   | 0bb88f2eda | ||
|   | 0886756196 | ||
|   | 1232a9d64c | ||
|   | a0ef0d32fe | ||
|   | 96d14d009d | ||
|   | 1fcc337ab7 | ||
|   | 0f2c58a7cc | ||
|   | f4c8d08849 | ||
| ![dependabot[bot]](/assets/img/avatar_default.png)  | 5effaf1761 | ||
|   | 940432bfee | ||
| ![dependabot[bot]](/assets/img/avatar_default.png)  | 3fa3b411f6 | ||
|   | 59aaa96760 | ||
|   | f07e3fd77f | ||
|   | 0fdcdfd35b | ||
|   | ed3de3f984 | ||
|   | f1840c82ae | ||
|   | b1ae386d8f | ||
|   | 55d0e8bf1e | ||
| ![dependabot[bot]](/assets/img/avatar_default.png)  | d5ffdf4330 | ||
|   | 08b47b0ba7 | ||
|   | bae367bf31 | ||
|   | d7e05cabb9 | ||
|   | 7cf8aa2e57 | ||
|   | 8225ee4fc6 | ||
|   | ae72763b86 | ||
|   | 2653a66f19 | ||
|   | 0272238cb6 | ||
|   | 87bb8a408c | ||
| ![dependabot[bot]](/assets/img/avatar_default.png)  | 38c7d87300 | ||
|   | 544251e681 | ||
| ![dependabot[bot]](/assets/img/avatar_default.png)  | 79079a1588 | ||
|   | c90677d575 | ||
|   | 544eab8907 | ||
|   | 9b8fbbe710 | ||
| ![dependabot[bot]](/assets/img/avatar_default.png)  | 3cf40177fb | ||
|   | 3a9b0d3b4f | ||
|   | 30046f9723 | ||
|   | 1944178657 | ||
|   | aa82816129 | ||
|   | ae6582d8c7 | ||
|   | d865a554b1 | ||
|   | a5b87a0d48 | ||
|   | 56366d252e | ||
| ![dependabot[bot]](/assets/img/avatar_default.png)  | 40d0bbcd04 | ||
|   | 337863256a | ||
|   | d536bf88ec | ||
|   | 5a94b0cafc | ||
|   | d50dbef8b0 | ||
|   | 6c22baa03c | ||
|   | 7e6c59b984 | ||
|   | 1e53c43669 | ||
|   | e1d6198d07 | ||
|   | 3e95f45a26 | ||
| ![dependabot[bot]](/assets/img/avatar_default.png)  | 932bb5bb7c | ||
| ![dependabot[bot]](/assets/img/avatar_default.png)  | bc217cf94d | ||
|   | 9cd63043c7 | 
							
								
								
									
										79
									
								
								.github/ISSUE_TEMPLATE/bug-report.yaml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										79
									
								
								.github/ISSUE_TEMPLATE/bug-report.yaml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,79 @@ | ||||
| name: "\U0001F41B Bug Report" | ||||
| title: "\U0001F41B [Bug]: " | ||||
| description: Create a bug report to help us fix it. | ||||
| labels: ["☢️ Bug"] | ||||
|  | ||||
| body: | ||||
|   - type: markdown | ||||
|     id: notice | ||||
|     attributes: | ||||
|       value: | | ||||
|         ### Notice | ||||
|         - Dont't forget you can ask your questions on our [Discord server](https://gofiber.io/discord). | ||||
|         - If you think Fiber storage don't have a nice feature that you think, open the issue with **✏️ Feature Request** template. | ||||
|         - Write your issue with clear and understandable English. | ||||
|   - type: textarea | ||||
|     id: description | ||||
|     attributes: | ||||
|       label: "Bug Description" | ||||
|       description: "A clear and detailed description of what the bug is." | ||||
|       placeholder: "Explain your problem as clear and detailed." | ||||
|     validations: | ||||
|       required: true | ||||
|   - type: textarea | ||||
|     id: how-to-reproduce | ||||
|     attributes: | ||||
|       label: How to Reproduce | ||||
|       description: "Steps to reproduce the behavior and what should be observed in the end." | ||||
|       placeholder: "Tell us step by step how we can replicate your problem and what we should see in the end." | ||||
|       value: | | ||||
|           Steps to reproduce the behavior: | ||||
|           1. Go to '....' | ||||
|           2. Click on '....' | ||||
|           3. Do '....' | ||||
|           4. See '....' | ||||
|     validations: | ||||
|       required: true | ||||
|   - type: textarea | ||||
|     id: expected-behavior | ||||
|     attributes: | ||||
|       label: Expected Behavior | ||||
|       description: "A clear and detailed description of what you think should happens." | ||||
|       placeholder: "Tell us what storage should normally do." | ||||
|     validations: | ||||
|       required: true | ||||
|   - type: input | ||||
|     id: version | ||||
|     attributes: | ||||
|       label: "Storage package Version" | ||||
|       description: "Some bugs may be fixed in future storage releases, so we have to know your storage package version." | ||||
|       placeholder: "Write your storage version. (v1.0.0, v1.1.0...)" | ||||
|     validations: | ||||
|       required: true | ||||
|   - type: textarea | ||||
|     id: snippet | ||||
|     attributes: | ||||
|       label: "Code Snippet (optional)" | ||||
|       description: "For some issues, we need to know some parts of your code." | ||||
|       placeholder: "Share a code you think related to the issue." | ||||
|       render: go | ||||
|       value: | | ||||
|         package main | ||||
|  | ||||
|         import "github.com/gofiber/storage/%package%" | ||||
|  | ||||
|         func main() { | ||||
|           // Steps to reproduce | ||||
|         } | ||||
|   - type: checkboxes | ||||
|     id: terms | ||||
|     attributes: | ||||
|       label: "Checklist:" | ||||
|       description: "By submitting this issue, you confirm that:" | ||||
|       options: | ||||
|         - label: "I agree to follow Fiber's [Code of Conduct](https://github.com/gofiber/fiber/blob/master/.github/CODE_OF_CONDUCT.md)." | ||||
|           required: true | ||||
|         - label: "I have checked for existing issues that describe my problem prior to opening this one." | ||||
|           required: true | ||||
|         - label: "I understand that improperly formatted bug reports may be closed without explanation." | ||||
|           required: true | ||||
							
								
								
									
										55
									
								
								.github/ISSUE_TEMPLATE/feature-request.yaml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										55
									
								
								.github/ISSUE_TEMPLATE/feature-request.yaml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,55 @@ | ||||
| name: "\U0001F680 Feature Request" | ||||
| title: "\U0001F680 [Feature]: " | ||||
| description: Suggest an idea to improve this project. | ||||
| labels: ["✏️ Feature"] | ||||
|  | ||||
| body: | ||||
|   - type: markdown | ||||
|     id: notice | ||||
|     attributes: | ||||
|       value: | | ||||
|         ### Notice | ||||
|         - Dont't forget you can ask your questions on our [Discord server](https://gofiber.io/discord). | ||||
|         - If you think this is just a bug, open the issue with **☢️ Bug Report** template. | ||||
|         - Write your issue with clear and understandable English. | ||||
|   - type: textarea | ||||
|     id: description | ||||
|     attributes: | ||||
|       label: "Feature Description" | ||||
|       description: "A clear and detailed description of the feature we need to do." | ||||
|       placeholder: "Explain your feature as clear and detailed." | ||||
|     validations: | ||||
|       required: true | ||||
|   - type: textarea | ||||
|     id: additional-context | ||||
|     attributes: | ||||
|       label: "Additional Context (optional)" | ||||
|       description: "If you have something else to describe, write them here." | ||||
|       placeholder: "Write here what you can describe differently." | ||||
|   - type: textarea | ||||
|     id: snippet | ||||
|     attributes: | ||||
|       label: "Code Snippet (optional)" | ||||
|       description: "Code snippet may be really helpful to describe some features." | ||||
|       placeholder: "Share a code to explain the feature better." | ||||
|       render: go | ||||
|       value: | | ||||
|         package main | ||||
|  | ||||
|         import "github.com/gofiber/storage/%package%" | ||||
|  | ||||
|         func main() { | ||||
|           // Steps to reproduce | ||||
|         } | ||||
|   - type: checkboxes | ||||
|     id: terms | ||||
|     attributes: | ||||
|       label: "Checklist:" | ||||
|       description: "By submitting this issue, you confirm that:" | ||||
|       options: | ||||
|         - label: "I agree to follow Fiber's [Code of Conduct](https://github.com/gofiber/fiber/blob/master/.github/CODE_OF_CONDUCT.md)." | ||||
|           required: true | ||||
|         - label: "I have checked for existing issues that describe my suggestion prior to opening this one." | ||||
|           required: true | ||||
|         - label: "I understand that improperly formatted feature requests may be closed without explanation." | ||||
|           required: true | ||||
							
								
								
									
										50
									
								
								.github/ISSUE_TEMPLATE/question.yaml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										50
									
								
								.github/ISSUE_TEMPLATE/question.yaml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,50 @@ | ||||
| name: "🤔 Question" | ||||
| title: "\U0001F917 [Question]: " | ||||
| description: Ask a question so we can help you easily. | ||||
| labels: ["🤔 Question"] | ||||
|  | ||||
| body: | ||||
|   - type: markdown | ||||
|     id: notice | ||||
|     attributes: | ||||
|       value: | | ||||
|         ### Notice | ||||
|         - Dont't forget you can ask your questions on our [Discord server](https://gofiber.io/discord). | ||||
|         - If you think this is just a bug, open the issue with **☢️ Bug Report** template. | ||||
|         - If you think Fiber storage don't have a nice feature that you think, open the issue with **✏️ Feature Request** template. | ||||
|         - Write your issue with clear and understandable English. | ||||
|   - type: textarea | ||||
|     id: description | ||||
|     attributes: | ||||
|       label: "Question Description" | ||||
|       description: "A clear and detailed description of the question." | ||||
|       placeholder: "Explain your question as clear and detailed." | ||||
|     validations: | ||||
|       required: true | ||||
|   - type: textarea | ||||
|     id: snippet | ||||
|     attributes: | ||||
|       label: "Code Snippet (optional)" | ||||
|       description: "Code snippet may be really helpful to describe some features." | ||||
|       placeholder: "Share a code to explain the feature better." | ||||
|       render: go | ||||
|       value: | | ||||
|         package main | ||||
|  | ||||
|         import "github.com/gofiber/storage/%package%" | ||||
|  | ||||
|         func main() { | ||||
|           // Steps to reproduce | ||||
|         } | ||||
|   - type: checkboxes | ||||
|     id: terms | ||||
|     attributes: | ||||
|       label: "Checklist:" | ||||
|       description: "By submitting this issue, you confirm that:" | ||||
|       options: | ||||
|         - label: "I agree to follow Fiber's [Code of Conduct](https://github.com/gofiber/fiber/blob/master/.github/CODE_OF_CONDUCT.md)." | ||||
|           required: true | ||||
|         - label: "I have checked for existing issues that describe my questions prior to opening this one." | ||||
|           required: true | ||||
|         - label: "I understand that improperly formatted questions may be closed without explanation." | ||||
|           required: true | ||||
							
								
								
									
										18
									
								
								.github/dependabot.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										18
									
								
								.github/dependabot.yml
									
									
									
									
										vendored
									
									
								
							| @@ -26,6 +26,24 @@ updates: | ||||
|             - "🤖 Dependencies" | ||||
|         schedule: | ||||
|             interval: "daily" | ||||
|     -   package-ecosystem: "gomod" | ||||
|         directory: "/couchbase/" # Location of package manifests | ||||
|         labels: | ||||
|             - "🤖 Dependencies" | ||||
|         schedule: | ||||
|             interval: "daily" | ||||
|     -   package-ecosystem: "gomod" | ||||
|         directory: "/etcd/" # Location of package manifests | ||||
|         labels: | ||||
|             - "🤖 Dependencies" | ||||
|         schedule: | ||||
|             interval: "daily" | ||||
|     -   package-ecosystem: "gomod" | ||||
|         directory: "/pebble/" # Location of package manifests | ||||
|         labels: | ||||
|             - "🤖 Dependencies" | ||||
|         schedule: | ||||
|             interval: "daily" | ||||
|     -   package-ecosystem: "gomod" | ||||
|         directory: "/dynamodb/" # Location of package manifests | ||||
|         labels: | ||||
|   | ||||
							
								
								
									
										9
									
								
								.github/logo-dark.svg
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								.github/logo-dark.svg
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| After Width: | Height: | Size: 14 KiB | 
							
								
								
									
										9
									
								
								.github/logo.svg
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								.github/logo.svg
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| After Width: | Height: | Size: 14 KiB | 
							
								
								
									
										43
									
								
								.github/release-drafter-couchbase.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										43
									
								
								.github/release-drafter-couchbase.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,43 @@ | ||||
| name-template: 'Couchbase - v$RESOLVED_VERSION' | ||||
| tag-template: 'couchbase/v$RESOLVED_VERSION' | ||||
| tag-prefix: couchbase/v | ||||
| include-paths: | ||||
|   - couchbase | ||||
| categories: | ||||
|   - title: '🚀 New' | ||||
|     labels: | ||||
|       - '✏️ Feature' | ||||
|   - title: '🧹 Updates' | ||||
|     labels: | ||||
|       - '🧹 Updates' | ||||
|       - '🤖 Dependencies' | ||||
|   - title: '🐛 Fixes' | ||||
|     labels: | ||||
|       - '☢️ Bug' | ||||
|   - title: '📚 Documentation' | ||||
|     labels: | ||||
|       - '📒 Documentation' | ||||
| change-template: '- $TITLE (#$NUMBER)' | ||||
| change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks. | ||||
| version-resolver: | ||||
|   major: | ||||
|     labels: | ||||
|       - 'major' | ||||
|   minor: | ||||
|     labels: | ||||
|       - 'minor' | ||||
|       - '✏️ Feature' | ||||
|   patch: | ||||
|     labels: | ||||
|       - 'patch' | ||||
|       - '📒 Documentation' | ||||
|       - '☢️ Bug' | ||||
|       - '🤖 Dependencies' | ||||
|       - '🧹 Updates' | ||||
|   default: patch | ||||
| template: | | ||||
|   $CHANGES | ||||
|    | ||||
|   **Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...couchbase/v$RESOLVED_VERSION | ||||
|    | ||||
|   Thank you $CONTRIBUTORS for making this update possible. | ||||
							
								
								
									
										43
									
								
								.github/release-drafter-etcd.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										43
									
								
								.github/release-drafter-etcd.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,43 @@ | ||||
| name-template: 'Etcd - v$RESOLVED_VERSION' | ||||
| tag-template: 'etcd/v$RESOLVED_VERSION' | ||||
| tag-prefix: etcd/v | ||||
| include-paths: | ||||
|     - etcd | ||||
| categories: | ||||
|     - title: '🚀 New' | ||||
|       labels: | ||||
|           - '✏️ Feature' | ||||
|     - title: '🧹 Updates' | ||||
|       labels: | ||||
|           - '🧹 Updates' | ||||
|           - '🤖 Dependencies' | ||||
|     - title: '🐛 Fixes' | ||||
|       labels: | ||||
|           - '☢️ Bug' | ||||
|     - title: '📚 Documentation' | ||||
|       labels: | ||||
|           - '📒 Documentation' | ||||
| change-template: '- $TITLE (#$NUMBER)' | ||||
| change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks. | ||||
| version-resolver: | ||||
|     major: | ||||
|         labels: | ||||
|             - 'major' | ||||
|     minor: | ||||
|         labels: | ||||
|             - 'minor' | ||||
|             - '✏️ Feature' | ||||
|     patch: | ||||
|         labels: | ||||
|             - 'patch' | ||||
|             - '📒 Documentation' | ||||
|             - '☢️ Bug' | ||||
|             - '🤖 Dependencies' | ||||
|             - '🧹 Updates' | ||||
|     default: patch | ||||
| template: | | ||||
|     $CHANGES | ||||
|  | ||||
|     **Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...etcd/v$RESOLVED_VERSION | ||||
|  | ||||
|     Thank you $CONTRIBUTORS for making this update possible. | ||||
							
								
								
									
										43
									
								
								.github/release-drafter-pebble.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										43
									
								
								.github/release-drafter-pebble.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,43 @@ | ||||
| name-template: "Pebble - v$RESOLVED_VERSION" | ||||
| tag-template: "pebble/v$RESOLVED_VERSION" | ||||
| tag-prefix: pebble/v | ||||
| include-paths: | ||||
|   - pebble | ||||
| categories: | ||||
|   - title: "🚀 New" | ||||
|     labels: | ||||
|       - "✏️ Feature" | ||||
|   - title: "🧹 Updates" | ||||
|     labels: | ||||
|       - "🧹 Updates" | ||||
|       - "🤖 Dependencies" | ||||
|   - title: "🐛 Fixes" | ||||
|     labels: | ||||
|       - "☢️ Bug" | ||||
|   - title: "📚 Documentation" | ||||
|     labels: | ||||
|       - "📒 Documentation" | ||||
| change-template: "- $TITLE (#$NUMBER)" | ||||
| change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks. | ||||
| version-resolver: | ||||
|   major: | ||||
|     labels: | ||||
|       - "major" | ||||
|   minor: | ||||
|     labels: | ||||
|       - "minor" | ||||
|       - "✏️ Feature" | ||||
|   patch: | ||||
|     labels: | ||||
|       - "patch" | ||||
|       - "📒 Documentation" | ||||
|       - "☢️ Bug" | ||||
|       - "🤖 Dependencies" | ||||
|       - "🧹 Updates" | ||||
|   default: patch | ||||
| template: | | ||||
|   $CHANGES | ||||
|  | ||||
|   **Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...pebble/v$RESOLVED_VERSION | ||||
|  | ||||
|   Thank you $CONTRIBUTORS for making this update possible. | ||||
							
								
								
									
										80
									
								
								.github/scripts/sync_docs.sh
									
									
									
									
										vendored
									
									
										Executable file
									
								
							
							
						
						
									
										80
									
								
								.github/scripts/sync_docs.sh
									
									
									
									
										vendored
									
									
										Executable file
									
								
							| @@ -0,0 +1,80 @@ | ||||
| #!/usr/bin/env bash | ||||
|  | ||||
| # Some env variables | ||||
| BRANCH="main" | ||||
| REPO_URL="github.com/gofiber/docs.git" | ||||
| AUTHOR_EMAIL="github-actions[bot]@users.noreply.github.com" | ||||
| AUTHOR_USERNAME="github-actions[bot]" | ||||
| VERSION_FILE="storage_versions.json" | ||||
| REPO_DIR="storage" | ||||
| COMMIT_URL="https://github.com/gofiber/storage" | ||||
| DOCUSAURUS_COMMAND="npm run docusaurus -- docs:version:storage" | ||||
|  | ||||
| # Set commit author | ||||
| git config --global user.email "${AUTHOR_EMAIL}" | ||||
| git config --global user.name "${AUTHOR_USERNAME}" | ||||
|  | ||||
| git clone https://${TOKEN}@${REPO_URL} fiber-docs | ||||
|  | ||||
| # Handle push event | ||||
| if [ "$EVENT" == "push" ]; then | ||||
| latest_commit=$(git rev-parse --short HEAD) | ||||
|  | ||||
| for f in $(find . -type f -name "*.md" -not -path "./fiber-docs/*"); do | ||||
|   log_output=$(git log --oneline "${BRANCH}" HEAD~1..HEAD --name-status -- "${f}") | ||||
|  | ||||
|     if [[ $log_output != "" || ! -f "fiber-docs/docs/${REPO_DIR}/$f" ]]; then | ||||
|       mkdir -p fiber-docs/docs/${REPO_DIR}/$(dirname $f) | ||||
|       cp "${f}" fiber-docs/docs/${REPO_DIR}/$f | ||||
|   fi | ||||
| done | ||||
|  | ||||
| # Handle release event | ||||
| elif [ "$EVENT" == "release" ]; then | ||||
|   # Extract package name from tag | ||||
|   package_name="${TAG_NAME%/*}" | ||||
|   major_version="${TAG_NAME#*/}" | ||||
|   major_version="${major_version%%.*}" | ||||
|  | ||||
|   # Form new version name | ||||
|   new_version="${package_name}_${major_version}.x.x" | ||||
|  | ||||
|   cd fiber-docs/ || true | ||||
|   npm ci | ||||
|  | ||||
|   # Check if contrib_versions.json exists and modify it if required | ||||
|   if [[ -f $VERSION_FILE ]]; then | ||||
|     jq --arg new_version "$new_version" 'del(.[] | select(. == $new_version))' $VERSION_FILE > temp.json && mv temp.json $VERSION_FILE | ||||
|     jq -S . ${VERSION_FILE} > temp.json && mv temp.json ${VERSION_FILE} | ||||
|   fi | ||||
|  | ||||
|   # Run docusaurus versioning command | ||||
|   $DOCUSAURUS_COMMAND "${new_version}" | ||||
| fi | ||||
|  | ||||
| # Push changes | ||||
| cd fiber-docs/ || true | ||||
| git add . | ||||
| if [[ $EVENT == "push" ]]; then | ||||
|     git commit -m "Add docs from ${COMMIT_URL}/commit/${latest_commit}" | ||||
| elif [[ $EVENT == "release" ]]; then | ||||
|     git commit -m "Sync docs for release ${COMMIT_URL}/releases/tag/${TAG_NAME}" | ||||
| fi | ||||
|  | ||||
| MAX_RETRIES=5 | ||||
| DELAY=5 | ||||
| retry=0 | ||||
|  | ||||
| while ((retry < MAX_RETRIES)) | ||||
| do | ||||
|     git push https://${TOKEN}@${REPO_URL} && break | ||||
|     retry=$((retry + 1)) | ||||
|     git pull --rebase | ||||
|     sleep $DELAY | ||||
| done | ||||
|  | ||||
| if ((retry == MAX_RETRIES)) | ||||
| then | ||||
|     echo "Failed to push after $MAX_RETRIES attempts. Exiting with 1." | ||||
|     exit 1 | ||||
| fi | ||||
							
								
								
									
										2
									
								
								.github/workflows/dependabot_automerge.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/dependabot_automerge.yml
									
									
									
									
										vendored
									
									
								
							| @@ -28,7 +28,7 @@ jobs: | ||||
|     steps: | ||||
|       - name: Dependabot metadata | ||||
|         id: metadata | ||||
|         uses: dependabot/fetch-metadata@v1.4.0 | ||||
|         uses: dependabot/fetch-metadata@v1.6.0 | ||||
|         with: | ||||
|           github-token: "${{ secrets.PR_TOKEN }}" | ||||
|       - name: Enable auto-merge for Dependabot PRs | ||||
|   | ||||
							
								
								
									
										31
									
								
								.github/workflows/golangci-lint.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								.github/workflows/golangci-lint.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,31 @@ | ||||
| name: Golangci Lint Check | ||||
|  | ||||
| on: | ||||
|   push: | ||||
|     branches: | ||||
|       - "master" | ||||
|       - "main" | ||||
|     paths-ignore: | ||||
|       - "**.md" | ||||
|       - LICENSE | ||||
|       - ".github/ISSUE_TEMPLATE/*.yml" | ||||
|       - ".github/dependabot.yml" | ||||
|   pull_request: | ||||
|     branches: | ||||
|       - "*" | ||||
|     paths-ignore: | ||||
|       - "**.md" | ||||
|       - LICENSE | ||||
|       - ".github/ISSUE_TEMPLATE/*.yml" | ||||
|       - ".github/dependabot.yml" | ||||
|  | ||||
| jobs: | ||||
|   golangci-lint: | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|       - name: Fetch Repository | ||||
|         uses: actions/checkout@v3 | ||||
|       - name: Run golangci-lint | ||||
|         uses: reviewdog/action-golangci-lint@v2 | ||||
|         with: | ||||
|           golangci_lint_flags: "--tests=false" | ||||
							
								
								
									
										114
									
								
								.github/workflows/gosec.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										114
									
								
								.github/workflows/gosec.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,114 @@ | ||||
| name: Gosec Security Scan | ||||
|  | ||||
| on: | ||||
|   push: | ||||
|     branches: | ||||
|       - "master" | ||||
|       - "main" | ||||
|     paths-ignore: | ||||
|       - "**.md" | ||||
|       - LICENSE | ||||
|       - ".github/ISSUE_TEMPLATE/*.yml" | ||||
|       - ".github/dependabot.yml" | ||||
|   pull_request: | ||||
|     branches: | ||||
|       - "*" | ||||
|     paths-ignore: | ||||
|       - "**.md" | ||||
|       - LICENSE | ||||
|       - ".github/ISSUE_TEMPLATE/*.yml" | ||||
|       - ".github/dependabot.yml" | ||||
|  | ||||
| jobs: | ||||
|   gosec-scan: | ||||
|     runs-on: ubuntu-latest | ||||
|     env: | ||||
|       GO111MODULE: on | ||||
|     steps: | ||||
|       - name: Fetch Repository | ||||
|         uses: actions/checkout@v3 | ||||
|       - name: Install Go | ||||
|         uses: actions/setup-go@v4 | ||||
|         with: | ||||
|           go-version: '^1.18.x' | ||||
|           check-latest: true | ||||
|           cache: false | ||||
|       - name: Install Gosec | ||||
|         run: go install github.com/securego/gosec/v2/cmd/gosec@latest | ||||
|       - name: Run Gosec (root) | ||||
|         working-directory: . | ||||
|         run: | | ||||
|           gosec -exclude-dir=arangodb -exclude-dir=badger -exclude-dir=couchbase -exclude-dir=dynamodb -exclude-dir=etcd -exclude-dir=memcache -exclude-dir=memory -exclude-dir=mongodb -exclude-dir=mysql -exclude-dir=postgres -exclude-dir=redis -exclude-dir=ristretto -exclude-dir=sqlite3 -exclude-dir=s3 -exclude-dir=bbolt -exclude-dir=azureblob -exclude-dir=mssql -exclude-dir=pebble ./.... | ||||
|         # ----- | ||||
|       - name: Run Gosec (arangodb) | ||||
|         working-directory: ./arangodb | ||||
|         run: gosec ./... | ||||
|         # ----- | ||||
|       - name: Run Gosec (badger) | ||||
|         working-directory: ./badger | ||||
|         run: gosec ./... | ||||
|         # ----- | ||||
|       - name: Run Gosec (couchbase) | ||||
|         working-directory: ./couchbase | ||||
|         run: gosec ./... | ||||
|         # ----- | ||||
|       - name: Run Gosec (dynamodb) | ||||
|         working-directory: ./dynamodb | ||||
|         run: gosec ./... | ||||
|         # ----- | ||||
|       - name: Run Gosec (etcd) | ||||
|         working-directory: ./etcd | ||||
|         run: gosec ./... | ||||
|         # ----- | ||||
|       - name: Run Gosec (memcache) | ||||
|         working-directory: ./memcache | ||||
|         run: gosec ./... | ||||
|         # ----- | ||||
|       - name: Run Gosec (memory) | ||||
|         working-directory: ./memory | ||||
|         run: gosec ./... | ||||
|         # ----- | ||||
|       - name: Run Gosec (mongodb) | ||||
|         working-directory: ./mongodb | ||||
|         run: gosec ./... | ||||
|         # ----- | ||||
|       - name: Run Gosec (mysql) | ||||
|         working-directory: ./mysql | ||||
|         run: gosec ./... | ||||
|         # ----- | ||||
|       - name: Run Gosec (postgres) | ||||
|         working-directory: ./postgres | ||||
|         run: gosec ./... | ||||
|         # ----- | ||||
|       - name: Run Gosec (redis) | ||||
|         working-directory: ./redis | ||||
|         run: gosec ./... | ||||
|         # ----- | ||||
|       - name: Run Gosec (sqlite3) | ||||
|         working-directory: ./sqlite3 | ||||
|         run: gosec ./... | ||||
|         # ----- | ||||
|       - name: Run Gosec (s3) | ||||
|         working-directory: ./s3 | ||||
|         run: gosec ./... | ||||
|         # ----- | ||||
|       - name: Run Gosec (ristretto) | ||||
|         working-directory: ./ristretto | ||||
|         run: gosec ./... | ||||
|         # ----- | ||||
|       - name: Run Gosec (bbolt) | ||||
|         working-directory: ./bbolt | ||||
|         run: gosec ./... | ||||
|         # ----- | ||||
|       - name: Run Gosec (azureblob) | ||||
|         working-directory: ./azureblob | ||||
|         run: gosec ./... | ||||
|         # ----- | ||||
|       - name: Run Gosec (mssql) | ||||
|         working-directory: ./mssql | ||||
|         run: gosec ./... | ||||
|         # ----- | ||||
|       - name: Run Gosec (pebble) | ||||
|         working-directory: ./pebble | ||||
|         run: gosec ./... | ||||
|         # ----- | ||||
							
								
								
									
										39
									
								
								.github/workflows/govulncheck.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								.github/workflows/govulncheck.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,39 @@ | ||||
| name: Govulncheck Security Scan | ||||
|  | ||||
| on: | ||||
|   push: | ||||
|     branches: | ||||
|       - "master" | ||||
|       - "main" | ||||
|     paths-ignore: | ||||
|       - "**.md" | ||||
|       - LICENSE | ||||
|       - ".github/ISSUE_TEMPLATE/*.yml" | ||||
|       - ".github/dependabot.yml" | ||||
|   pull_request: | ||||
|     branches: | ||||
|       - "*" | ||||
|     paths-ignore: | ||||
|       - "**.md" | ||||
|       - LICENSE | ||||
|       - ".github/ISSUE_TEMPLATE/*.yml" | ||||
|       - ".github/dependabot.yml" | ||||
|  | ||||
| jobs: | ||||
|   govulncheck-check: | ||||
|     runs-on: ubuntu-latest | ||||
|     env: | ||||
|       GO111MODULE: on | ||||
|     steps: | ||||
|     - name: Fetch Repository | ||||
|       uses: actions/checkout@v3 | ||||
|     - name: Install Go | ||||
|       uses: actions/setup-go@v4 | ||||
|       with: | ||||
|         go-version: 'stable' | ||||
|         check-latest: true | ||||
|         cache: false | ||||
|     - name: Install Govulncheck | ||||
|       run: go install golang.org/x/vuln/cmd/govulncheck@latest | ||||
|     - name: Run Govulncheck | ||||
|       run: govulncheck ./... | ||||
							
								
								
									
										17
									
								
								.github/workflows/linter.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										17
									
								
								.github/workflows/linter.yml
									
									
									
									
										vendored
									
									
								
							| @@ -1,17 +0,0 @@ | ||||
| on: | ||||
|     push: | ||||
|         branches: | ||||
|             - master | ||||
|             - main | ||||
|     pull_request: | ||||
| name: Linter | ||||
| jobs: | ||||
|   Golint: | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|       - name: Fetch Repository | ||||
|         uses: actions/checkout@v3 | ||||
|       - name: Run Golint | ||||
|         uses: reviewdog/action-golangci-lint@v2 | ||||
|         with: | ||||
|           golangci_lint_flags: "--tests=false" | ||||
							
								
								
									
										19
									
								
								.github/workflows/release-drafter-couchbase.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								.github/workflows/release-drafter-couchbase.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| name: Release Drafter Couchbase | ||||
| on: | ||||
|   push: | ||||
|     # branches to consider in the event; optional, defaults to all | ||||
|     branches: | ||||
|       - master | ||||
|       - main | ||||
|     paths: | ||||
|       - 'couchbase/**' | ||||
| jobs: | ||||
|   draft_release_couchbase: | ||||
|     runs-on: ubuntu-latest | ||||
|     timeout-minutes: 30 | ||||
|     steps: | ||||
|       -   uses: release-drafter/release-drafter@v5 | ||||
|           with: | ||||
|             config-name: release-drafter-couchbase.yml | ||||
|           env: | ||||
|             GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||
							
								
								
									
										19
									
								
								.github/workflows/release-drafter-etcd.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								.github/workflows/release-drafter-etcd.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| name: Release Drafter Etcd | ||||
| on: | ||||
|     push: | ||||
|         # branches to consider in the event; optional, defaults to all | ||||
|         branches: | ||||
|             - master | ||||
|             - main | ||||
|         paths: | ||||
|             - 'etcd/**' | ||||
| jobs: | ||||
|     draft_release_etcd: | ||||
|         runs-on: ubuntu-latest | ||||
|         timeout-minutes: 30 | ||||
|         steps: | ||||
|             -   uses: release-drafter/release-drafter@v5 | ||||
|                 with: | ||||
|                     config-name: release-drafter-etcd.yml | ||||
|                 env: | ||||
|                     GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||
							
								
								
									
										19
									
								
								.github/workflows/release-drafter-pebble.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								.github/workflows/release-drafter-pebble.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| name: Release Drafter Pebble | ||||
| on: | ||||
|   push: | ||||
|     # branches to consider in the event; optional, defaults to all | ||||
|     branches: | ||||
|       - master | ||||
|       - main | ||||
|     paths: | ||||
|       - "pebble/**" | ||||
| jobs: | ||||
|   draft_release_pebble: | ||||
|     runs-on: ubuntu-latest | ||||
|     timeout-minutes: 30 | ||||
|     steps: | ||||
|       - uses: release-drafter/release-drafter@v5 | ||||
|         with: | ||||
|           config-name: release-drafter-pebble.yml | ||||
|         env: | ||||
|           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||
							
								
								
									
										85
									
								
								.github/workflows/security.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										85
									
								
								.github/workflows/security.yml
									
									
									
									
										vendored
									
									
								
							| @@ -1,85 +0,0 @@ | ||||
| on: | ||||
|     push: | ||||
|         branches: | ||||
|             - master | ||||
|             - main | ||||
|     pull_request: | ||||
| name: Security | ||||
| jobs: | ||||
|     Gosec: | ||||
|         runs-on: ubuntu-latest | ||||
|         steps: | ||||
|             -   name: Fetch Repository | ||||
|                 uses: actions/checkout@v3 | ||||
|             -   name: Install Go | ||||
|                 uses: actions/setup-go@v4 | ||||
|                 with: | ||||
|                     go-version: '^1.17.x' | ||||
|             -   name: Install Gosec | ||||
|                 run: | | ||||
|                     export PATH=${PATH}:`go env GOPATH`/bin | ||||
|                     go install github.com/securego/gosec/v2/cmd/gosec@latest | ||||
|             -   name: Run Gosec (root) | ||||
|                 working-directory: . | ||||
|                 run: "`go env GOPATH`/bin/gosec -exclude-dir=internal -exclude-dir=arangodb -exclude-dir=badger -exclude-dir=dynamodb -exclude-dir=memcache -exclude-dir=memory -exclude-dir=mongodb -exclude-dir=mysql -exclude-dir=postgres -exclude-dir=redis -exclude-dir=ristretto -exclude-dir=sqlite3 -exclude-dir=s3 -exclude-dir=bbolt -exclude-dir=azureblob -exclude-dir=mssql ./..." | ||||
|                 # ----- | ||||
|             -   name: Run Gosec (arangodb) | ||||
|                 working-directory: ./arangodb | ||||
|                 run: "`go env GOPATH`/bin/gosec -exclude-dir=internal ./..." | ||||
|                 # ----- | ||||
|             -   name: Run Gosec (badger) | ||||
|                 working-directory: ./badger | ||||
|                 run: "`go env GOPATH`/bin/gosec -exclude-dir=internal ./..." | ||||
|                 # ----- | ||||
|             -   name: Run Gosec (dynamodb) | ||||
|                 working-directory: ./dynamodb | ||||
|                 run: "`go env GOPATH`/bin/gosec -exclude-dir=internal ./..." | ||||
|                 # ----- | ||||
|             -   name: Run Gosec (memcache) | ||||
|                 working-directory: ./memcache | ||||
|                 run: "`go env GOPATH`/bin/gosec -exclude-dir=internal ./..." | ||||
|                 # ----- | ||||
|             -   name: Run Gosec (memory) | ||||
|                 working-directory: ./memory | ||||
|                 run: "`go env GOPATH`/bin/gosec -exclude-dir=internal ./..." | ||||
|                 # ----- | ||||
|             -   name: Run Gosec (mongodb) | ||||
|                 working-directory: ./mongodb | ||||
|                 run: "`go env GOPATH`/bin/gosec -exclude-dir=internal ./..." | ||||
|                 # ----- | ||||
|             -   name: Run Gosec (mysql) | ||||
|                 working-directory: ./mysql | ||||
|                 run: "`go env GOPATH`/bin/gosec -exclude-dir=internal ./..." | ||||
|                 # ----- | ||||
|             -   name: Run Gosec (postgres) | ||||
|                 working-directory: ./postgres | ||||
|                 run: "`go env GOPATH`/bin/gosec -exclude-dir=internal ./..." | ||||
|                 # ----- | ||||
|             -   name: Run Gosec (redis) | ||||
|                 working-directory: ./redis | ||||
|                 run: "`go env GOPATH`/bin/gosec -exclude-dir=internal ./..." | ||||
|                 # ----- | ||||
|             -   name: Run Gosec (sqlite3) | ||||
|                 working-directory: ./sqlite3 | ||||
|                 run: "`go env GOPATH`/bin/gosec -exclude-dir=internal ./..." | ||||
|                 # ----- | ||||
|             -   name: Run Gosec (s3) | ||||
|                 working-directory: ./s3 | ||||
|                 run: "`go env GOPATH`/bin/gosec -exclude-dir=internal ./..." | ||||
|                 # ----- | ||||
|             -   name: Run Gosec (ristretto) | ||||
|                 working-directory: ./ristretto | ||||
|                 run: "`go env GOPATH`/bin/gosec -exclude-dir=internal ./..." | ||||
|                 # ----- | ||||
|             -   name: Run Gosec (bbolt) | ||||
|                 working-directory: ./bbolt | ||||
|                 run: "`go env GOPATH`/bin/gosec -exclude-dir=internal ./..." | ||||
|                 # ----- | ||||
|             -   name: Run Gosec (azureblob) | ||||
|                 working-directory: ./azureblob | ||||
|                 run: "`go env GOPATH`/bin/gosec -exclude-dir=internal ./..." | ||||
|                 # ----- | ||||
|             -   name: Run Gosec (mssql) | ||||
|                 working-directory: ./mssql | ||||
|                 run: "`go env GOPATH`/bin/gosec -exclude-dir=internal ./..." | ||||
|                 # ----- | ||||
							
								
								
									
										38
									
								
								.github/workflows/sync-docs.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								.github/workflows/sync-docs.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,38 @@ | ||||
| name: 'Sync docs' | ||||
|  | ||||
| on: | ||||
|     push: | ||||
|         branches: | ||||
|             - master | ||||
|             - main | ||||
|         paths: | ||||
|             - '**/*.md' | ||||
|     release: | ||||
|         types: [published] | ||||
|         branches: | ||||
|             - '*/v[0-9]+.[0-9]+.[0-9]+' | ||||
|  | ||||
| jobs: | ||||
|     sync-docs: | ||||
|         runs-on: ubuntu-latest | ||||
|         steps: | ||||
|             - name: Checkout | ||||
|               uses: actions/checkout@v3 | ||||
|               with: | ||||
|                   ref: ${{ github.event.pull_request.head.sha }} | ||||
|                   fetch-depth: 2 | ||||
|  | ||||
|             - name: Setup Node.js environment | ||||
|               uses: actions/setup-node@v3 | ||||
|               with: | ||||
|                   node-version: '18' | ||||
|  | ||||
|             - name: Install JQ | ||||
|               run: sudo apt-get install jq | ||||
|  | ||||
|             - name: Sync docs | ||||
|               run: ./.github/scripts/sync_docs.sh | ||||
|               env: | ||||
|                   EVENT: ${{ github.event_name }} | ||||
|                   TAG_NAME: ${{ github.ref_name }} | ||||
|                   TOKEN: ${{ secrets.DOC_SYNC_TOKEN }} | ||||
							
								
								
									
										20
									
								
								.github/workflows/test-arangodb.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										20
									
								
								.github/workflows/test-arangodb.yml
									
									
									
									
										vendored
									
									
								
							| @@ -27,27 +27,11 @@ jobs: | ||||
|                     - 1.19.x | ||||
|                     - 1.20.x | ||||
|         steps: | ||||
|             -   name: Fetch Repository | ||||
|                 uses: actions/checkout@v3 | ||||
|             -   name: Install Go | ||||
|                 uses: actions/setup-go@v4 | ||||
|                 with: | ||||
|                     go-version: '${{ matrix.go-version }}' | ||||
|             -   name: Setup Golang caches | ||||
|                 uses: actions/cache@v3 | ||||
|                 with: | ||||
|                     # In order: | ||||
|                     # * Module download cache | ||||
|                     # * Build cache (Linux) | ||||
|                     # * Build cache (Mac) | ||||
|                     # * Build cache (Windows) | ||||
|                     path: | | ||||
|                         ~/go/pkg/mod | ||||
|                         ~/.cache/go-build | ||||
|                         ~/Library/Caches/go-build | ||||
|                         ~\AppData\Local\go-build | ||||
|                     key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} | ||||
|                     restore-keys: | | ||||
|                         ${{ runner.os }}-go-${{ matrix.go-version }}- | ||||
|             -   name: Fetch Repository | ||||
|                 uses: actions/checkout@v3 | ||||
|             -   name: Run Test | ||||
|                 run: cd ./arangodb && go test ./... -v -race | ||||
|   | ||||
							
								
								
									
										20
									
								
								.github/workflows/test-azureblob.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										20
									
								
								.github/workflows/test-azureblob.yml
									
									
									
									
										vendored
									
									
								
							| @@ -22,27 +22,11 @@ jobs: | ||||
|         -   name: Install Azurite | ||||
|             run: | | ||||
|                 docker run -d -p 10000:10000 mcr.microsoft.com/azure-storage/azurite azurite-blob --blobHost 0.0.0.0 --blobPort 10000 | ||||
|         -   name: Fetch Repository | ||||
|             uses: actions/checkout@v3 | ||||
|         -   name: Install Go | ||||
|             uses: actions/setup-go@v4 | ||||
|             with: | ||||
|                 go-version: '${{ matrix.go-version }}' | ||||
|         -   name: Setup Golang caches | ||||
|             uses: actions/cache@v3 | ||||
|             with: | ||||
|                 # In order: | ||||
|                 # * Module download cache | ||||
|                 # * Build cache (Linux) | ||||
|                 # * Build cache (Mac) | ||||
|                 # * Build cache (Windows) | ||||
|                 path: | | ||||
|                     ~/go/pkg/mod | ||||
|                     ~/.cache/go-build | ||||
|                     ~/Library/Caches/go-build | ||||
|                     ~\AppData\Local\go-build | ||||
|                 key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} | ||||
|                 restore-keys: | | ||||
|                     ${{ runner.os }}-go-${{ matrix.go-version }}- | ||||
|         -   name: Fetch Repository | ||||
|             uses: actions/checkout@v3 | ||||
|         -   name: Run Test | ||||
|             run: cd ./azureblob && go test ./... -v -race | ||||
|   | ||||
							
								
								
									
										21
									
								
								.github/workflows/test-badger.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										21
									
								
								.github/workflows/test-badger.yml
									
									
									
									
										vendored
									
									
								
							| @@ -19,28 +19,11 @@ jobs: | ||||
|                     - 1.20.x | ||||
|         runs-on: ubuntu-latest | ||||
|         steps: | ||||
|             -   name: Fetch Repository | ||||
|                 uses: actions/checkout@v3 | ||||
|             -   name: Install Go | ||||
|                 uses: actions/setup-go@v4 | ||||
|                 with: | ||||
|                     go-version: '${{ matrix.go-version }}' | ||||
|             -   name: Setup Golang caches | ||||
|                 uses: actions/cache@v3 | ||||
|                 with: | ||||
|                     # In order: | ||||
|                     # * Module download cache | ||||
|                     # * Build cache (Linux) | ||||
|                     # * Build cache (Mac) | ||||
|                     # * Build cache (Windows) | ||||
|                     path: | | ||||
|                         ~/go/pkg/mod | ||||
|                         ~/.cache/go-build | ||||
|                         ~/Library/Caches/go-build | ||||
|                         ~\AppData\Local\go-build | ||||
|                     key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} | ||||
|                     restore-keys: | | ||||
|                         ${{ runner.os }}-go-${{ matrix.go-version }}- | ||||
|  | ||||
|             -   name: Fetch Repository | ||||
|                 uses: actions/checkout@v3 | ||||
|             -   name: Test Badger | ||||
|                 run: cd ./badger && go test ./... -v -race | ||||
|   | ||||
							
								
								
									
										20
									
								
								.github/workflows/test-bbolt.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										20
									
								
								.github/workflows/test-bbolt.yml
									
									
									
									
										vendored
									
									
								
							| @@ -19,27 +19,11 @@ jobs: | ||||
|                     - 1.19.x | ||||
|                     - 1.20.x | ||||
|         steps: | ||||
|             -   name: Fetch Repository | ||||
|                 uses: actions/checkout@v3 | ||||
|             -   name: Install Go | ||||
|                 uses: actions/setup-go@v4 | ||||
|                 with: | ||||
|                     go-version: '${{ matrix.go-version }}' | ||||
|             -   name: Setup Golang caches | ||||
|                 uses: actions/cache@v3 | ||||
|                 with: | ||||
|                     # In order: | ||||
|                     # * Module download cache | ||||
|                     # * Build cache (Linux) | ||||
|                     # * Build cache (Mac) | ||||
|                     # * Build cache (Windows) | ||||
|                     path: | | ||||
|                         ~/go/pkg/mod | ||||
|                         ~/.cache/go-build | ||||
|                         ~/Library/Caches/go-build | ||||
|                         ~\AppData\Local\go-build | ||||
|                     key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} | ||||
|                     restore-keys: | | ||||
|                         ${{ runner.os }}-go-${{ matrix.go-version }}- | ||||
|             -   name: Fetch Repository | ||||
|                 uses: actions/checkout@v3 | ||||
|             -   name: Run Test | ||||
|                 run: cd ./bbolt && go test ./... -v -race | ||||
|   | ||||
							
								
								
									
										35
									
								
								.github/workflows/test-couchbase.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								.github/workflows/test-couchbase.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,35 @@ | ||||
| on: | ||||
|   push: | ||||
|     branches: | ||||
|       - master | ||||
|       - main | ||||
|     paths: | ||||
|       - 'couchbase/**' | ||||
|   pull_request: | ||||
|     paths: | ||||
|       - 'couchbase/**' | ||||
| name: "Tests Couchbase" | ||||
| jobs: | ||||
|   Tests: | ||||
|     runs-on: ubuntu-latest | ||||
|     strategy: | ||||
|       matrix: | ||||
|         go-version: | ||||
|           - 1.19.x | ||||
|           - 1.20.x | ||||
|     steps: | ||||
|       - name: Fetch Repository | ||||
|         uses: actions/checkout@v3 | ||||
|       - name: Install couchbase | ||||
|         run: | | ||||
|           docker run --name couchbase -d -p 8091-8097:8091-8097 -p 9123:9123 -p 11207:11207 -p 11210:11210 -p 11280:11280 -p 18091-18097:18091-18097 couchbase:enterprise-7.1.1 | ||||
|           sleep 10 | ||||
|           docker exec --tty couchbase couchbase-cli cluster-init -c localhost:8091 --cluster-username admin --cluster-password 123456 --cluster-ramsize 256 --services data | ||||
|           sleep 10 | ||||
|           docker exec --tty couchbase couchbase-cli bucket-create -c localhost:8091 --username admin --password 123456 --bucket fiber_storage --bucket-type couchbase --bucket-ramsize 100 --enable-flush 1 | ||||
|       -   name: Install Go | ||||
|           uses: actions/setup-go@v4 | ||||
|           with: | ||||
|             go-version: '${{ matrix.go-version }}' | ||||
|       -   name: Run Test | ||||
|           run: cd ./couchbase && go test ./... -v -race | ||||
							
								
								
									
										20
									
								
								.github/workflows/test-dynamodb.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										20
									
								
								.github/workflows/test-dynamodb.yml
									
									
									
									
										vendored
									
									
								
							| @@ -25,27 +25,11 @@ jobs: | ||||
|                     - 1.19.x | ||||
|                     - 1.20.x | ||||
|         steps: | ||||
|             -   name: Fetch Repository | ||||
|                 uses: actions/checkout@v3 | ||||
|             -   name: Install Go | ||||
|                 uses: actions/setup-go@v4 | ||||
|                 with: | ||||
|                     go-version: '${{ matrix.go-version }}' | ||||
|             -   name: Setup Golang caches | ||||
|                 uses: actions/cache@v3 | ||||
|                 with: | ||||
|                     # In order: | ||||
|                     # * Module download cache | ||||
|                     # * Build cache (Linux) | ||||
|                     # * Build cache (Mac) | ||||
|                     # * Build cache (Windows) | ||||
|                     path: | | ||||
|                         ~/go/pkg/mod | ||||
|                         ~/.cache/go-build | ||||
|                         ~/Library/Caches/go-build | ||||
|                         ~\AppData\Local\go-build | ||||
|                     key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} | ||||
|                     restore-keys: | | ||||
|                         ${{ runner.os }}-go-${{ matrix.go-version }}- | ||||
|             -   name: Fetch Repository | ||||
|                 uses: actions/checkout@v3 | ||||
|             -   name: Run Test | ||||
|                 run: cd ./dynamodb && go test ./... -v -race | ||||
|   | ||||
							
								
								
									
										37
									
								
								.github/workflows/test-etcd.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								.github/workflows/test-etcd.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,37 @@ | ||||
| on: | ||||
|     push: | ||||
|         branches: | ||||
|             - master | ||||
|             - main | ||||
|         paths: | ||||
|             - 'etcd/**' | ||||
|     pull_request: | ||||
|         paths: | ||||
|             - 'etcd/**' | ||||
| name: "Tests Etcd" | ||||
| jobs: | ||||
|     Tests: | ||||
|         runs-on: ubuntu-latest | ||||
|         strategy: | ||||
|             matrix: | ||||
|                 go-version: | ||||
|                     - 1.19.x | ||||
|                     - 1.20.x | ||||
|         steps: | ||||
|             -   name: Fetch Repository | ||||
|                 uses: actions/checkout@v3 | ||||
|             -   name: Install etcd | ||||
|                 run: | | ||||
|                     docker run -d --name Etcd-server \ | ||||
|                       --publish 2379:2379 \ | ||||
|                       --publish 2380:2380 \ | ||||
|                       --env ALLOW_NONE_AUTHENTICATION=yes \ | ||||
|                       --env ETCD_ADVERTISE_CLIENT_URLS=http://etcd-server:2379 \ | ||||
|                       bitnami/etcd:latest | ||||
|  | ||||
|             -   name: Install Go | ||||
|                 uses: actions/setup-go@v4 | ||||
|                 with: | ||||
|                     go-version: '${{ matrix.go-version }}' | ||||
|             -   name: Run Test | ||||
|                 run: cd ./etcd && go test ./... -v -race | ||||
							
								
								
									
										20
									
								
								.github/workflows/test-memcache.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										20
									
								
								.github/workflows/test-memcache.yml
									
									
									
									
										vendored
									
									
								
							| @@ -25,27 +25,11 @@ jobs: | ||||
|                     - 1.19.x | ||||
|                     - 1.20.x | ||||
|         steps: | ||||
|             -   name: Fetch Repository | ||||
|                 uses: actions/checkout@v3 | ||||
|             -   name: Install Go | ||||
|                 uses: actions/setup-go@v4 | ||||
|                 with: | ||||
|                     go-version: '${{ matrix.go-version }}' | ||||
|             -   name: Setup Golang caches | ||||
|                 uses: actions/cache@v3 | ||||
|                 with: | ||||
|                     # In order: | ||||
|                     # * Module download cache | ||||
|                     # * Build cache (Linux) | ||||
|                     # * Build cache (Mac) | ||||
|                     # * Build cache (Windows) | ||||
|                     path: | | ||||
|                         ~/go/pkg/mod | ||||
|                         ~/.cache/go-build | ||||
|                         ~/Library/Caches/go-build | ||||
|                         ~\AppData\Local\go-build | ||||
|                     key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} | ||||
|                     restore-keys: | | ||||
|                         ${{ runner.os }}-go-${{ matrix.go-version }}- | ||||
|             -   name: Fetch Repository | ||||
|                 uses: actions/checkout@v3 | ||||
|             -   name: Run Test | ||||
|                 run: cd ./memcache && go test ./... -v -race | ||||
|   | ||||
| @@ -20,28 +20,11 @@ jobs: | ||||
|                     - 1.20.x | ||||
|         runs-on: ubuntu-latest | ||||
|         steps: | ||||
|             -   name: Fetch Repository | ||||
|                 uses: actions/checkout@v3 | ||||
|             -   name: Install Go | ||||
|                 uses: actions/setup-go@v4 | ||||
|                 with: | ||||
|                     go-version: '${{ matrix.go-version }}' | ||||
|             -   name: Setup Golang caches | ||||
|                 uses: actions/cache@v3 | ||||
|                 with: | ||||
|                     # In order: | ||||
|                     # * Module download cache | ||||
|                     # * Build cache (Linux) | ||||
|                     # * Build cache (Mac) | ||||
|                     # * Build cache (Windows) | ||||
|                     path: | | ||||
|                         ~/go/pkg/mod | ||||
|                         ~/.cache/go-build | ||||
|                         ~/Library/Caches/go-build | ||||
|                         ~\AppData\Local\go-build | ||||
|                     key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} | ||||
|                     restore-keys: | | ||||
|                         ${{ runner.os }}-go-${{ matrix.go-version }}- | ||||
| 
 | ||||
|             -   name: Fetch Repository | ||||
|                 uses: actions/checkout@v3 | ||||
|             -   name: Test Memory | ||||
|                 run: cd ./memory && go test ./... -v -race | ||||
							
								
								
									
										20
									
								
								.github/workflows/test-mongodb.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										20
									
								
								.github/workflows/test-mongodb.yml
									
									
									
									
										vendored
									
									
								
							| @@ -25,28 +25,12 @@ jobs: | ||||
|                     - 1.19.x | ||||
|                     - 1.20.x | ||||
|         steps: | ||||
|             -   name: Fetch Repository | ||||
|                 uses: actions/checkout@v3 | ||||
|             -   name: Install Go | ||||
|                 uses: actions/setup-go@v4 | ||||
|                 with: | ||||
|                     go-version: '${{ matrix.go-version }}' | ||||
|             -   name: Setup Golang caches | ||||
|                 uses: actions/cache@v3 | ||||
|                 with: | ||||
|                     # In order: | ||||
|                     # * Module download cache | ||||
|                     # * Build cache (Linux) | ||||
|                     # * Build cache (Mac) | ||||
|                     # * Build cache (Windows) | ||||
|                     path: | | ||||
|                         ~/go/pkg/mod | ||||
|                         ~/.cache/go-build | ||||
|                         ~/Library/Caches/go-build | ||||
|                         ~\AppData\Local\go-build | ||||
|                     key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} | ||||
|                     restore-keys: | | ||||
|                         ${{ runner.os }}-go-${{ matrix.go-version }}- | ||||
|             -   name: Fetch Repository | ||||
|                 uses: actions/checkout@v3 | ||||
|             -   name: Run Test | ||||
|                 run: cd ./mongodb && go test ./... -v -race | ||||
|  | ||||
|   | ||||
							
								
								
									
										20
									
								
								.github/workflows/test-mssql.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										20
									
								
								.github/workflows/test-mssql.yml
									
									
									
									
										vendored
									
									
								
							| @@ -36,28 +36,12 @@ jobs: | ||||
|                     - 1.19.x | ||||
|                     - 1.20.x | ||||
|         steps: | ||||
|             -   name: Fetch Repository | ||||
|                 uses: actions/checkout@v3 | ||||
|             -   name: Install Go | ||||
|                 uses: actions/setup-go@v4 | ||||
|                 with: | ||||
|                     go-version: '${{ matrix.go-version }}' | ||||
|             -   name: Setup Golang caches | ||||
|                 uses: actions/cache@v3 | ||||
|                 with: | ||||
|                     # In order: | ||||
|                     # * Module download cache | ||||
|                     # * Build cache (Linux) | ||||
|                     # * Build cache (Mac) | ||||
|                     # * Build cache (Windows) | ||||
|                     path: | | ||||
|                         ~/go/pkg/mod | ||||
|                         ~/.cache/go-build | ||||
|                         ~/Library/Caches/go-build | ||||
|                         ~\AppData\Local\go-build | ||||
|                     key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} | ||||
|                     restore-keys: | | ||||
|                         ${{ runner.os }}-go-${{ matrix.go-version }}- | ||||
|             -   name: Fetch Repository | ||||
|                 uses: actions/checkout@v3 | ||||
|             -   name: Run Test | ||||
|                 run: cd ./mssql && go test ./... -v -race | ||||
|                 env: | ||||
|   | ||||
							
								
								
									
										20
									
								
								.github/workflows/test-mysql.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										20
									
								
								.github/workflows/test-mysql.yml
									
									
									
									
										vendored
									
									
								
							| @@ -33,28 +33,12 @@ jobs: | ||||
|                     - 1.19.x | ||||
|                     - 1.20.x | ||||
|         steps: | ||||
|             -   name: Fetch Repository | ||||
|                 uses: actions/checkout@v3 | ||||
|             -   name: Install Go | ||||
|                 uses: actions/setup-go@v4 | ||||
|                 with: | ||||
|                     go-version: '${{ matrix.go-version }}' | ||||
|             -   name: Setup Golang caches | ||||
|                 uses: actions/cache@v3 | ||||
|                 with: | ||||
|                     # In order: | ||||
|                     # * Module download cache | ||||
|                     # * Build cache (Linux) | ||||
|                     # * Build cache (Mac) | ||||
|                     # * Build cache (Windows) | ||||
|                     path: | | ||||
|                         ~/go/pkg/mod | ||||
|                         ~/.cache/go-build | ||||
|                         ~/Library/Caches/go-build | ||||
|                         ~\AppData\Local\go-build | ||||
|                     key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} | ||||
|                     restore-keys: | | ||||
|                         ${{ runner.os }}-go-${{ matrix.go-version }}- | ||||
|             -   name: Fetch Repository | ||||
|                 uses: actions/checkout@v3 | ||||
|             -   name: Run Test | ||||
|                 run: cd ./mysql && go test ./... -v -race | ||||
|                 env: | ||||
|   | ||||
							
								
								
									
										28
									
								
								.github/workflows/test-pebble.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								.github/workflows/test-pebble.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,28 @@ | ||||
| on: | ||||
|   push: | ||||
|     branches: | ||||
|       - master | ||||
|       - main | ||||
|     paths: | ||||
|       - "pebble/**" | ||||
|   pull_request: | ||||
|     paths: | ||||
|       - "pebble/**" | ||||
| name: "Tests pebble" | ||||
| jobs: | ||||
|   Tests: | ||||
|     strategy: | ||||
|       matrix: | ||||
|         go-version: | ||||
|           - 1.19.x | ||||
|           - 1.20.x | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|     -   name: Fetch Repository | ||||
|         uses: actions/checkout@v3 | ||||
|     -   name: Install Go | ||||
|         uses: actions/setup-go@v4 | ||||
|         with: | ||||
|             go-version: '${{ matrix.go-version }}' | ||||
|     -   name: Test Pebble | ||||
|         run: cd ./pebble && go test ./... -v -race | ||||
							
								
								
									
										20
									
								
								.github/workflows/test-postgres.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										20
									
								
								.github/workflows/test-postgres.yml
									
									
									
									
										vendored
									
									
								
							| @@ -30,28 +30,12 @@ jobs: | ||||
|                     - 1.19.x | ||||
|                     - 1.20.x | ||||
|         steps: | ||||
|             -   name: Fetch Repository | ||||
|                 uses: actions/checkout@v3 | ||||
|             -   name: Install Go | ||||
|                 uses: actions/setup-go@v4 | ||||
|                 with: | ||||
|                     go-version: '${{ matrix.go-version }}' | ||||
|             -   name: Setup Golang caches | ||||
|                 uses: actions/cache@v3 | ||||
|                 with: | ||||
|                     # In order: | ||||
|                     # * Module download cache | ||||
|                     # * Build cache (Linux) | ||||
|                     # * Build cache (Mac) | ||||
|                     # * Build cache (Windows) | ||||
|                     path: | | ||||
|                         ~/go/pkg/mod | ||||
|                         ~/.cache/go-build | ||||
|                         ~/Library/Caches/go-build | ||||
|                         ~\AppData\Local\go-build | ||||
|                     key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} | ||||
|                     restore-keys: | | ||||
|                         ${{ runner.os }}-go-${{ matrix.go-version }}- | ||||
|             -   name: Fetch Repository | ||||
|                 uses: actions/checkout@v3 | ||||
|             -   name: Run Test | ||||
|                 run: cd ./postgres && go test ./... -v -race | ||||
|                 env: | ||||
|   | ||||
							
								
								
									
										17
									
								
								.github/workflows/test-redis.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										17
									
								
								.github/workflows/test-redis.yml
									
									
									
									
										vendored
									
									
								
							| @@ -55,22 +55,5 @@ jobs: | ||||
|                 with: | ||||
|                     go-version: '${{ matrix.go-version }}' | ||||
|  | ||||
|             -   name: Setup Golang caches | ||||
|                 uses: actions/cache@v3 | ||||
|                 with: | ||||
|                     # In order: | ||||
|                     # * Module download cache | ||||
|                     # * Build cache (Linux) | ||||
|                     # * Build cache (Mac) | ||||
|                     # * Build cache (Windows) | ||||
|                     path: | | ||||
|                         ~/go/pkg/mod | ||||
|                         ~/.cache/go-build | ||||
|                         ~/Library/Caches/go-build | ||||
|                         ~\AppData\Local\go-build | ||||
|                     key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} | ||||
|                     restore-keys: | | ||||
|                         ${{ runner.os }}-go-${{ matrix.go-version }}- | ||||
|  | ||||
|             -   name: Run Test | ||||
|                 run: cd ./redis && go test ./... -v -race | ||||
|   | ||||
							
								
								
									
										32
									
								
								.github/workflows/test-ristretto.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										32
									
								
								.github/workflows/test-ristretto.yml
									
									
									
									
										vendored
									
									
								
							| @@ -19,27 +19,11 @@ jobs: | ||||
|                     - 1.19.x | ||||
|                     - 1.20.x | ||||
|         steps: | ||||
|         -   name: Install Go | ||||
|             uses: actions/setup-go@v4 | ||||
|             with: | ||||
|                 go-version: '${{ matrix.go-version }}' | ||||
|         -   name: Setup Golang caches | ||||
|             uses: actions/cache@v3 | ||||
|             with: | ||||
|                 # In order: | ||||
|                 # * Module download cache | ||||
|                 # * Build cache (Linux) | ||||
|                 # * Build cache (Mac) | ||||
|                 # * Build cache (Windows) | ||||
|                 path: | | ||||
|                     ~/go/pkg/mod | ||||
|                     ~/.cache/go-build | ||||
|                     ~/Library/Caches/go-build | ||||
|                     ~\AppData\Local\go-build | ||||
|                 key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} | ||||
|                 restore-keys: | | ||||
|                     ${{ runner.os }}-go-${{ matrix.go-version }}- | ||||
|         -   name: Fetch Repository | ||||
|             uses: actions/checkout@v3 | ||||
|         -   name: Run Test | ||||
|             run: cd ./ristretto && go test ./... -v -race | ||||
|             -   name: Fetch Repository | ||||
|                 uses: actions/checkout@v3 | ||||
|             -   name: Install Go | ||||
|                 uses: actions/setup-go@v4 | ||||
|                 with: | ||||
|                     go-version: '${{ matrix.go-version }}' | ||||
|             -   name: Run Test | ||||
|                 run: cd ./ristretto && go test ./... -v -race | ||||
|   | ||||
							
								
								
									
										20
									
								
								.github/workflows/test-s3.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										20
									
								
								.github/workflows/test-s3.yml
									
									
									
									
										vendored
									
									
								
							| @@ -28,27 +28,11 @@ jobs: | ||||
|                 export AWS_EC2_METADATA_DISABLED=true | ||||
|  | ||||
|                 aws --endpoint-url http://127.0.0.1:9000/ s3 mb s3://testbucket | ||||
|         -   name: Fetch Repository | ||||
|             uses: actions/checkout@v3 | ||||
|         -   name: Install Go | ||||
|             uses: actions/setup-go@v4 | ||||
|             with: | ||||
|                 go-version: '${{ matrix.go-version }}' | ||||
|         -   name: Setup Golang caches | ||||
|             uses: actions/cache@v3 | ||||
|             with: | ||||
|                 # In order: | ||||
|                 # * Module download cache | ||||
|                 # * Build cache (Linux) | ||||
|                 # * Build cache (Mac) | ||||
|                 # * Build cache (Windows) | ||||
|                 path: | | ||||
|                     ~/go/pkg/mod | ||||
|                     ~/.cache/go-build | ||||
|                     ~/Library/Caches/go-build | ||||
|                     ~\AppData\Local\go-build | ||||
|                 key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} | ||||
|                 restore-keys: | | ||||
|                     ${{ runner.os }}-go-${{ matrix.go-version }}- | ||||
|         -   name: Fetch Repository | ||||
|             uses: actions/checkout@v3 | ||||
|         -   name: Run Test | ||||
|             run: cd ./s3 && go test ./... -v -race | ||||
|   | ||||
							
								
								
									
										21
									
								
								.github/workflows/test-sqlite3.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										21
									
								
								.github/workflows/test-sqlite3.yml
									
									
									
									
										vendored
									
									
								
							| @@ -20,29 +20,12 @@ jobs: | ||||
|                     - 1.20.x | ||||
|         runs-on: ubuntu-latest | ||||
|         steps: | ||||
|             -   name: Fetch Repository | ||||
|                 uses: actions/checkout@v3 | ||||
|             -   name: Install Go | ||||
|                 uses: actions/setup-go@v4 | ||||
|                 with: | ||||
|                     go-version: '${{ matrix.go-version }}' | ||||
|             -   name: Setup Golang caches | ||||
|                 uses: actions/cache@v3 | ||||
|                 with: | ||||
|                     # In order: | ||||
|                     # * Module download cache | ||||
|                     # * Build cache (Linux) | ||||
|                     # * Build cache (Mac) | ||||
|                     # * Build cache (Windows) | ||||
|                     path: | | ||||
|                         ~/go/pkg/mod | ||||
|                         ~/.cache/go-build | ||||
|                         ~/Library/Caches/go-build | ||||
|                         ~\AppData\Local\go-build | ||||
|                     key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} | ||||
|                     restore-keys: | | ||||
|                         ${{ runner.os }}-go-${{ matrix.go-version }}- | ||||
|  | ||||
|             -   name: Fetch Repository | ||||
|                 uses: actions/checkout@v3 | ||||
|             -   name: Test SQLite3 - with -race check | ||||
|                 if: runner.os != 'Windows' | ||||
|                 run: cd ./sqlite3 && go test ./... -v -race | ||||
|   | ||||
							
								
								
									
										19
									
								
								.github/workflows/vulncheck.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										19
									
								
								.github/workflows/vulncheck.yml
									
									
									
									
										vendored
									
									
								
							| @@ -1,19 +0,0 @@ | ||||
| on: [push, pull_request_target] | ||||
| name: Vulnerability Check | ||||
| jobs: | ||||
|   Security: | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|     - name: Install Go | ||||
|       uses: actions/setup-go@v4 | ||||
|       with: | ||||
|         go-version: 1.18.x | ||||
|     - name: Fetch Repository | ||||
|       uses: actions/checkout@v3 | ||||
|     - name: Install Govulncheck | ||||
|       run: | | ||||
|           export GO111MODULE=on | ||||
|           export PATH=${PATH}:`go env GOPATH`/bin | ||||
|           go install golang.org/x/vuln/cmd/govulncheck@latest | ||||
|     - name: Run Govulncheck | ||||
|       run: "`go env GOPATH`/bin/govulncheck ./..." | ||||
							
								
								
									
										22
									
								
								MIGRATE.md
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								MIGRATE.md
									
									
									
									
									
								
							| @@ -1,22 +0,0 @@ | ||||
| This document contains instructions for migrating to various storage versions. | ||||
|  | ||||
| ### 0.1 -> 0.2 | ||||
| v0.2 fixes [a bug](https://github.com/gofiber/fiber/issues/1258) in MYSQL, Postgres and Arangodb in which  | ||||
| inserting non-UTF8 characters would trigger a panic due to the values being saved in a TEXT column instead of a  | ||||
| BYTEA/BLOB column. Migration instructions (note you may need to adjust the table names if you have supplied a custom | ||||
| config to the storage): | ||||
|  | ||||
| **Postgres** | ||||
| ```sql | ||||
| ALTER TABLE fiber_storage | ||||
| ALTER COLUMN v TYPE BYTEA USING v::bytea; | ||||
| ``` | ||||
|  | ||||
| **MYSQL** | ||||
| ```sql | ||||
| ALTER TABLE fiber_storage MODIFY COLUMN v BLOB; | ||||
| ``` | ||||
|  | ||||
| **Arangodb** | ||||
|  | ||||
| No migration other then updating the library is necessary. | ||||
							
								
								
									
										84
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										84
									
								
								README.md
									
									
									
									
									
								
							| @@ -1,20 +1,24 @@ | ||||
| <p align="center"> | ||||
|   <picture> | ||||
|     <source height="125" media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/gofiber/docs/master/static/img/logo-dark.svg"> | ||||
|     <img height="125" alt="Fiber" src="https://raw.githubusercontent.com/gofiber/docs/master/static/img/logo.svg"> | ||||
|   </picture> | ||||
|   <br> | ||||
| --- | ||||
| title: 👋 Welcome | ||||
| description: 📦 Premade storage drivers for 🚀 Fiber. | ||||
| sidebar_position: 1 | ||||
| --- | ||||
|  | ||||
|   # 📦 Storage | ||||
| <p align="center"> | ||||
|   <img height="125" alt="Fiber" src="https://raw.githubusercontent.com/gofiber/storage/master/.github/logo-dark.svg#gh-dark-mode-only" /> | ||||
|   <img height="125" alt="Fiber" src="https://raw.githubusercontent.com/gofiber/storage/master/.github/logo.svg#gh-light-mode-only" /> | ||||
|   <br/> | ||||
|  | ||||
| # 📦 Storage | ||||
|  | ||||
|   <a href="https://pkg.go.dev/github.com/gofiber/storage?tab=doc"> | ||||
|     <img src="https://img.shields.io/badge/%F0%9F%93%9A%20godoc-pkg-00ACD7.svg?color=00ACD7&style=flat"> | ||||
|     <img src="https://img.shields.io/badge/%F0%9F%93%9A%20godoc-pkg-00ACD7.svg?color=00ACD7&style=flat"/> | ||||
|   </a> | ||||
|   <a href="https://goreportcard.com/report/github.com/gofiber/storage"> | ||||
|     <img src="https://img.shields.io/badge/%F0%9F%93%9D%20goreport-A%2B-75C46B"> | ||||
|     <img src="https://img.shields.io/badge/%F0%9F%93%9D%20goreport-A%2B-75C46B"/> | ||||
|   </a> | ||||
|   <a href="https://gofiber.io/discord"> | ||||
|     <img src="https://img.shields.io/discord/704680098577514527?style=flat&label=%F0%9F%92%AC%20discord&color=00ACD7"> | ||||
|     <img src="https://img.shields.io/discord/704680098577514527?style=flat&label=%F0%9F%92%AC%20discord&color=00ACD7"/> | ||||
|   </a> | ||||
| </p> | ||||
|  | ||||
| @@ -48,45 +52,21 @@ type Storage interface { | ||||
|  | ||||
| ## 📑 Storage Implementations | ||||
|  | ||||
| * [ArangoDB](/arangodb) <a href="https://github.com/gofiber/storage/actions?query=workflow%3A%22Tests+ArangoDB%22"> | ||||
|     <img src="https://img.shields.io/github/actions/workflow/status/gofiber/storage/test-arangodb.yml?branch=main&label=%F0%9F%A7%AA%20&style=flat&color=75C46B"> | ||||
|   </a> | ||||
| * [AzureBlob](/azureblob) <a href="https://github.com/gofiber/storage/actions?query=workflow%3A%22Tests+Azure+Blob%22"> | ||||
|   <img src="https://img.shields.io/github/actions/workflow/status/gofiber/storage/test-azureblob.yml?branch=main&label=%F0%9F%A7%AA%20&style=flat&color=75C46B"> | ||||
|   </a> | ||||
| * [Badger](/badger) <a href="https://github.com/gofiber/storage/actions?query=workflow%3A%22Tests+Badger%22"> | ||||
|     <img src="https://img.shields.io/github/actions/workflow/status/gofiber/storage/test-badger.yml?branch=main&label=%F0%9F%A7%AA%20&style=flat&color=75C46B"> | ||||
|   </a> | ||||
| * [Bbolt](/bbolt) <a href="https://github.com/gofiber/storage/actions?query=workflow%3A%22Tests+Bbolt%22"> | ||||
|     <img src="https://img.shields.io/github/actions/workflow/status/gofiber/storage/test-bbolt.yml?branch=main&label=%F0%9F%A7%AA%20&style=flat&color=75C46B"> | ||||
|   </a> | ||||
| * [DynamoDB](/dynamodb) <a href="https://github.com/gofiber/storage/actions?query=workflow%3A%22Tests+DynamoDB%22"> | ||||
|     <img src="https://img.shields.io/github/actions/workflow/status/gofiber/storage/test-dynamodb.yml?branch=main&label=%F0%9F%A7%AA%20&style=flat&color=75C46B"> | ||||
|   </a> | ||||
| * [Memcache](/memcache) <a href="https://github.com/gofiber/storage/actions?query=workflow%3A%22Tests+Memcache%22"> | ||||
|     <img src="https://img.shields.io/github/actions/workflow/status/gofiber/storage/test-memcache.yml?branch=main&label=%F0%9F%A7%AA%20&style=flat&color=75C46B"> | ||||
|   </a> | ||||
| * [Memory](/memory) <a href="https://github.com/gofiber/storage/actions?query=workflow%3A%22Tests+Local+Storage%22"> | ||||
|     <img src="https://img.shields.io/github/actions/workflow/status/gofiber/storage/test.yml?branch=main&label=%F0%9F%A7%AA%20&style=flat&color=75C46B"> | ||||
|   </a> | ||||
| * [MongoDB](/mongodb) <a href="https://github.com/gofiber/storage/actions?query=workflow%3A%22Tests+Mongodb%22"> | ||||
|     <img src="https://img.shields.io/github/actions/workflow/status/gofiber/storage/test-mongodb.yml?branch=main&label=%F0%9F%A7%AA%20&style=flat&color=75C46B"> | ||||
|   </a> | ||||
| * [MSSQL](/mssql) <a href="https://github.com/gofiber/storage/actions?query=workflow%3A%22Tests+MSSQL%22"> | ||||
|     <img src="https://img.shields.io/github/actions/workflow/status/gofiber/storage/test-mssql.yml?branch=main&label=%F0%9F%A7%AA%20&style=flat&color=75C46B"> | ||||
|   </a> | ||||
| * [MySQL](/mysql) <a href="https://github.com/gofiber/storage/actions?query=workflow%3A%22Tests+MySQL%22"> | ||||
|     <img src="https://img.shields.io/github/actions/workflow/status/gofiber/storage/test-mysql.yml?branch=main&label=%F0%9F%A7%AA%20&style=flat&color=75C46B"> | ||||
|   </a> | ||||
| * [Postgres](/postgres) <a href="https://github.com/gofiber/storage/actions?query=workflow%3A%22Tests+Postgres%22"> | ||||
|     <img src="https://img.shields.io/github/actions/workflow/status/gofiber/storage/test-postgres.yml?branch=main&label=%F0%9F%A7%AA%20&style=flat&color=75C46B"> | ||||
|   </a> | ||||
| * [Redis](/redis) <a href="https://github.com/gofiber/storage/actions?query=workflow%3A%22Tests+Redis%22"> | ||||
|     <img src="https://img.shields.io/github/actions/workflow/status/gofiber/storage/test-redis.yml?branch=main&label=%F0%9F%A7%AA%20&style=flat&color=75C46B"> | ||||
|   </a> | ||||
| * [SQLite3](/sqlite3) <a href="https://github.com/gofiber/storage/actions?query=workflow%3A%22Tests+Sqlite3%22"> | ||||
|     <img src="https://img.shields.io/github/actions/workflow/status/gofiber/storage/test-sqlite3.yml?branch=main&label=%F0%9F%A7%AA%20&style=flat&color=75C46B"> | ||||
|   </a> | ||||
| * [S3](/s3) <a href="https://github.com/gofiber/storage/actions?query=workflow%3A%22Tests+S3%22"> | ||||
|     <img src="https://img.shields.io/github/actions/workflow/status/gofiber/storage/test-s3.yml?branch=main&label=%F0%9F%A7%AA%20&style=flat&color=75C46B"> | ||||
|   </a> | ||||
| - [ArangoDB](./arangodb/README.md) <a href="https://github.com/gofiber/storage/actions?query=workflow%3A%22Tests+ArangoDB%22"> <img src="https://img.shields.io/github/actions/workflow/status/gofiber/storage/test-arangodb.yml?branch=main&label=%F0%9F%A7%AA%20&style=flat&color=75C46B" /> </a> | ||||
| - [AzureBlob](./azureblob/README.md) <a href="https://github.com/gofiber/storage/actions?query=workflow%3A%22Tests+Azure+Blob%22"> <img src="https://img.shields.io/github/actions/workflow/status/gofiber/storage/test-azureblob.yml?branch=main&label=%F0%9F%A7%AA%20&style=flat&color=75C46B" /> </a> | ||||
| - [Badger](./badger/README.md) <a href="https://github.com/gofiber/storage/actions?query=workflow%3A%22Tests+Badger%22"> <img src="https://img.shields.io/github/actions/workflow/status/gofiber/storage/test-badger.yml?branch=main&label=%F0%9F%A7%AA%20&style=flat&color=75C46B" /> </a> | ||||
| - [Bbolt](./bbolt) <a href="https://github.com/gofiber/storage/actions?query=workflow%3A%22Tests+Bbolt%22"> <img src="https://img.shields.io/github/actions/workflow/status/gofiber/storage/test-bbolt.yml?branch=main&label=%F0%9F%A7%AA%20&style=flat&color=75C46B" /> </a> | ||||
| - [Couchbase](./couchbase/README.md) <a href="https://github.com/gofiber/storage/actions?query=workflow%3A%22Tests+Couchbase%22"> <img src="https://img.shields.io/github/actions/workflow/status/gofiber/storage/test-couchbase.yml?branch=main&label=%F0%9F%A7%AA%20&style=flat&color=75C46B" /> </a> | ||||
| - [DynamoDB](./dynamodb/README.md) <a href="https://github.com/gofiber/storage/actions?query=workflow%3A%22Tests+DynamoDB%22"> <img src="https://img.shields.io/github/actions/workflow/status/gofiber/storage/test-dynamodb.yml?branch=main&label=%F0%9F%A7%AA%20&style=flat&color=75C46B" /> </a> | ||||
| - [Etcd](./etcd/README.md) <a href="https://github.com/gofiber/storage/actions?query=workflow%3A%22Tests+Etcd%22"> <img src="https://img.shields.io/github/actions/workflow/status/gofiber/storage/test-etcd.yml?branch=main&label=%F0%9F%A7%AA%20&style=flat&color=75C46B" /> </a> | ||||
| - [Memcache](./memcache/README.md) <a href="https://github.com/gofiber/storage/actions?query=workflow%3A%22Tests+Memcache%22"> <img src="https://img.shields.io/github/actions/workflow/status/gofiber/storage/test-memcache.yml?branch=main&label=%F0%9F%A7%AA%20&style=flat&color=75C46B" /> </a> | ||||
| - [Memory](./memory/README.md) <a href="https://github.com/gofiber/storage/actions?query=workflow%3A%22Tests+Local+Storage%22"> <img src="https://img.shields.io/github/actions/workflow/status/gofiber/storage/test-memory.yml?branch=main&label=%F0%9F%A7%AA%20&style=flat&color=75C46B" /> </a> | ||||
| - [MongoDB](./mongodb/README.md) <a href="https://github.com/gofiber/storage/actions?query=workflow%3A%22Tests+Mongodb%22"> <img src="https://img.shields.io/github/actions/workflow/status/gofiber/storage/test-mongodb.yml?branch=main&label=%F0%9F%A7%AA%20&style=flat&color=75C46B" /> </a> | ||||
| - [MSSQL](./mssql/README.md) <a href="https://github.com/gofiber/storage/actions?query=workflow%3A%22Tests+MSSQL%22"> <img src="https://img.shields.io/github/actions/workflow/status/gofiber/storage/test-mssql.yml?branch=main&label=%F0%9F%A7%AA%20&style=flat&color=75C46B" /> </a> | ||||
| - [MySQL](./mysql/README.md) <a href="https://github.com/gofiber/storage/actions?query=workflow%3A%22Tests+MySQL%22"> <img src="https://img.shields.io/github/actions/workflow/status/gofiber/storage/test-mysql.yml?branch=main&label=%F0%9F%A7%AA%20&style=flat&color=75C46B" /> </a> | ||||
| - [Pebble](./pebble/README.md) <a href="https://github.com/gofiber/storage/actions?query=workflow%3A%22Tests+Pebble%22"> <img src="https://img.shields.io/github/actions/workflow/status/gofiber/storage/test-pebble.yml?branch=main&label=%F0%9F%A7%AA%20&style=flat&color=75C46B" /> </a> | ||||
| - [Postgres](./postgres/README.md) <a href="https://github.com/gofiber/storage/actions?query=workflow%3A%22Tests+Postgres%22"> <img src="https://img.shields.io/github/actions/workflow/status/gofiber/storage/test-postgres.yml?branch=main&label=%F0%9F%A7%AA%20&style=flat&color=75C46B" /> </a> | ||||
| - [Redis](./redis/README.md) <a href="https://github.com/gofiber/storage/actions?query=workflow%3A%22Tests+Redis%22"> <img src="https://img.shields.io/github/actions/workflow/status/gofiber/storage/test-redis.yml?branch=main&label=%F0%9F%A7%AA%20&style=flat&color=75C46B" /> </a> | ||||
| - [S3](./s3/README.md) <a href="https://github.com/gofiber/storage/actions?query=workflow%3A%22Tests+S3%22"> <img src="https://img.shields.io/github/actions/workflow/status/gofiber/storage/test-s3.yml?branch=main&label=%F0%9F%A7%AA%20&style=flat&color=75C46B" /> </a> | ||||
| - [SQLite3](./sqlite3/README.md) <a href="https://github.com/gofiber/storage/actions?query=workflow%3A%22Tests+Sqlite3%22"> <img src="https://img.shields.io/github/actions/workflow/status/gofiber/storage/test-sqlite3.yml?branch=main&label=%F0%9F%A7%AA%20&style=flat&color=75C46B" /> </a> | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,14 @@ | ||||
| # ArangoDB | ||||
| --- | ||||
| id: arangodb | ||||
| title: ArangoDB | ||||
| --- | ||||
|  | ||||
|  | ||||
| [](https://gofiber.io/discord) | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| A ArangoDB storage driver using `arangodb/go-driver` and [arangodb/go-driver](https://github.com/arangodb/go-driver). | ||||
|  | ||||
| ### Table of Contents | ||||
|   | ||||
| @@ -3,7 +3,7 @@ module github.com/gofiber/storage/arangodb | ||||
| go 1.17 | ||||
|  | ||||
| require ( | ||||
| 	github.com/arangodb/go-driver v1.5.2 | ||||
| 	github.com/arangodb/go-driver v1.6.0 | ||||
| 	github.com/gofiber/utils v1.1.0 | ||||
| ) | ||||
|  | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
| github.com/arangodb/go-driver v1.5.2 h1:/gmUh2XbNJKvEMgldlZ465KfKfL8aHlsjen0AF50VgY= | ||||
| github.com/arangodb/go-driver v1.5.2/go.mod h1:VQNm7LN7ZzKZ8TxYQ3JJ7U/JTtb8y9fRiF11YMCjOTA= | ||||
| github.com/arangodb/go-driver v1.6.0 h1:NFWj/idqXZxhFVueihMSI2R9NotNIsgvNfM/xmpekb4= | ||||
| github.com/arangodb/go-driver v1.6.0/go.mod h1:HQmdGkvNMVBTE3SIPSQ8T/ZddC6iwNsfMR+dDJQxIsI= | ||||
| github.com/arangodb/go-velocypack v0.0.0-20200318135517-5af53c29c67e h1:Xg+hGrY2LcQBbxd0ZFdbGSyRKTYMZCfBbw/pMJFOk1g= | ||||
| github.com/arangodb/go-velocypack v0.0.0-20200318135517-5af53c29c67e/go.mod h1:mq7Shfa/CaixoDxiyAAc5jZ6CVBAyPaNQCGS7mkj4Ho= | ||||
| github.com/coreos/go-iptables v0.6.0/go.mod h1:Qe8Bv2Xik5FyTXwgIbLAnv2sWSBmvWdFETJConOQ//Q= | ||||
| @@ -23,29 +23,27 @@ github.com/stretchr/testify v1.5.1 h1:nOGnQDM7FYENwehXlg/kFVnos3rEvtKTjRvOWSzb6H | ||||
| github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= | ||||
| github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= | ||||
| golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= | ||||
| golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= | ||||
| golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= | ||||
| golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= | ||||
| golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= | ||||
| golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= | ||||
| golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= | ||||
| golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= | ||||
| golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= | ||||
| golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= | ||||
| golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | ||||
| golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | ||||
| golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= | ||||
| golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | ||||
| golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | ||||
| golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | ||||
| golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | ||||
| golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= | ||||
| golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= | ||||
| golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= | ||||
| golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= | ||||
| golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= | ||||
| golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= | ||||
| golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= | ||||
| golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= | ||||
| golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= | ||||
| golang.org/x/tools v0.0.0-20190828213141-aed303cbaa74/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= | ||||
| golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= | ||||
|   | ||||
| @@ -1,4 +1,13 @@ | ||||
| # Azure blob | ||||
| --- | ||||
| id: azureblob | ||||
| title: Azure Blob | ||||
| --- | ||||
|  | ||||
|  | ||||
| [](https://gofiber.io/discord) | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| [Azure Blob storage](https://azure.microsoft.com/en-us/products/storage/blobs/#overview) is Microsoft's object storage solution for the cloud. | ||||
|  | ||||
|   | ||||
| @@ -4,13 +4,14 @@ go 1.18 | ||||
|  | ||||
| require ( | ||||
| 	github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.6.1 | ||||
| 	github.com/gofiber/fiber/v2 v2.40.0 | ||||
| 	github.com/gofiber/fiber/v2 v2.43.0 | ||||
| ) | ||||
|  | ||||
| require ( | ||||
| 	github.com/Azure/azure-sdk-for-go/sdk/azcore v1.2.0 // indirect | ||||
| 	github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.2 // indirect | ||||
| 	github.com/google/uuid v1.3.0 // indirect | ||||
| 	golang.org/x/net v0.7.0 // indirect | ||||
| 	golang.org/x/text v0.7.0 // indirect | ||||
| 	golang.org/x/crypto v0.7.0 // indirect | ||||
| 	golang.org/x/net v0.8.0 // indirect | ||||
| 	golang.org/x/text v0.8.0 // indirect | ||||
| ) | ||||
|   | ||||
| @@ -8,8 +8,8 @@ github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.6.1/go.mod h1:c6WvOhtmjN | ||||
| github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1 h1:BWe8a+f/t+7KY7zH2mqygeUD0t8hNFXe08p1Pb3/jKE= | ||||
| github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= | ||||
| github.com/dnaeon/go-vcr v1.1.0 h1:ReYa/UBrRyQdant9B4fNHGoCNKw6qh6P0fsdGmZpR7c= | ||||
| github.com/gofiber/fiber/v2 v2.40.0 h1:fdU7w5hT6PLL7jiWIhtQ+S/k5WEFYoUZidptlPu8GBo= | ||||
| github.com/gofiber/fiber/v2 v2.40.0/go.mod h1:Gko04sLksnHbzLSRBFWPFdzM9Ws9pRxvvIaohJK1dsk= | ||||
| github.com/gofiber/fiber/v2 v2.43.0 h1:yit3E4kHf178B60p5CQBa/3v+WVuziWMa/G2ZNyLJB0= | ||||
| github.com/gofiber/fiber/v2 v2.43.0/go.mod h1:mpS1ZNE5jU+u+BA4FbM+KKnUzJ4wzTK+FT2tG3tU+6I= | ||||
| github.com/golang-jwt/jwt v3.2.1+incompatible h1:73Z+4BJcrTC+KczS6WvTPvRGOp1WmfEP4Q1lOd9Z/+c= | ||||
| github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= | ||||
| github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= | ||||
| @@ -17,11 +17,12 @@ github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0 | ||||
| github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 h1:Qj1ukM4GlMWXNdMBuXcXfz/Kw9s1qm0CLY32QxuSImI= | ||||
| github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= | ||||
| github.com/stretchr/testify v1.7.1 h1:5TQK59W5E3v0r2duFAb7P95B6hEeOyEnHRa8MjYSMTY= | ||||
| golang.org/x/crypto v0.0.0-20220511200225-c6db032c6c88 h1:Tgea0cVUD0ivh5ADBX4WwuI12DUd2to3nCYe2eayMIw= | ||||
| golang.org/x/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= | ||||
| golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= | ||||
| golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= | ||||
| golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= | ||||
| golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= | ||||
| golang.org/x/crypto v0.7.0 h1:AvwMYaRytfdeVt3u6mLaxYtErKYjxA2OXjJ1HHq6t3A= | ||||
| golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= | ||||
| golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ= | ||||
| golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= | ||||
| golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ= | ||||
| golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68= | ||||
| golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= | ||||
| gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= | ||||
| gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= | ||||
|   | ||||
| @@ -1,4 +1,13 @@ | ||||
| # Badger | ||||
| --- | ||||
| id: badger | ||||
| title: Badger | ||||
| --- | ||||
|  | ||||
|  | ||||
| [](https://gofiber.io/discord) | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| A fast key-value DB using [dgraph-io/badger](https://github.com/dgraph-io/badger) | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,14 @@ | ||||
| # Bbolt | ||||
| --- | ||||
| id: bbolt | ||||
| title: Bbolt | ||||
| --- | ||||
|  | ||||
|  | ||||
| [](https://gofiber.io/discord) | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| A Bbolt storage driver using [etcd-io/bbolt](https://github.com/etcd-io/bbolt). Bolt is a pure Go key/value store inspired by [Howard Chu's](https://twitter.com/hyc_symas) [LMDB project](https://www.symas.com/symas-embedded-database-lmdb). The goal of the project is to provide a simple, fast, and reliable database for projects that don't require a full database server such as Postgres or MySQL. | ||||
|  | ||||
|  | ||||
|   | ||||
							
								
								
									
										92
									
								
								couchbase/README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										92
									
								
								couchbase/README.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,92 @@ | ||||
| --- | ||||
| id: couchbase | ||||
| title: Couchbase | ||||
| --- | ||||
|  | ||||
|  | ||||
| [](https://gofiber.io/discord) | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| A Couchbase storage driver using [couchbase/gocb](https://github.com/couchbase/gocb). | ||||
|  | ||||
| ### Table of Contents | ||||
| - [Signatures](#signatures) | ||||
| - [Installation](#installation) | ||||
| - [Examples](#examples) | ||||
| - [Config](#config) | ||||
| - [Default Config](#default-config) | ||||
|  | ||||
| ### Signatures | ||||
| ```go | ||||
| func New(config ...Config) Storage | ||||
| func (s *Storage) Get(key string) ([]byte, error) | ||||
| func (s *Storage) Set(key string, val []byte, exp time.Duration) error | ||||
| func (s *Storage) Delete(key string) error | ||||
| func (s *Storage) Reset() error | ||||
| func (s *Storage) Close() error | ||||
| func (s *Storage) Conn() *gocb.Cluster | ||||
| ``` | ||||
| ### Installation | ||||
| Couchbase is tested on the 2 last [Go versions](https://golang.org/dl/) with support for modules. So make sure to initialize one first if you didn't do that yet: | ||||
| ```bash | ||||
| go mod init github.com/<user>/<repo> | ||||
| ``` | ||||
| And then install the Couchbase implementation: | ||||
| ```bash | ||||
| go get github.com/gofiber/storage/couchbase | ||||
| ``` | ||||
|  | ||||
| ### Examples | ||||
| Import the storage package. | ||||
| ```go | ||||
| import "github.com/gofiber/storage/couchbase" | ||||
| ``` | ||||
|  | ||||
| You can use the following possibilities to create a storage: | ||||
| ```go | ||||
| // Initialize default config | ||||
| store := couchbase.New() | ||||
|  | ||||
| // Initialize Couchbase storage with custom config | ||||
| store := couchbase.New(couchbase.Config{ | ||||
| 	Host:      "127.0.0.1:8091", | ||||
| 	Username:  "", | ||||
| 	Password:  "", | ||||
| 	Bucket:  0, | ||||
| 	ConnectionTimeout: 3* time.Second, | ||||
| 	KVTimeout: 1* time.Second, | ||||
| }) | ||||
| ``` | ||||
|  | ||||
| ### Config | ||||
| ```go | ||||
| type Config struct { | ||||
|     // The application username to Connect to the Couchbase cluster | ||||
|     Username string | ||||
|     // The application password to Connect to the Couchbase cluster | ||||
|     Password string | ||||
|     // The connection string for the Couchbase cluster | ||||
|     Host string | ||||
|     // The name of the bucket to Connect to | ||||
|     Bucket string | ||||
|     // The timeout for connecting to the Couchbase cluster | ||||
|     ConnectionTimeout time.Duration | ||||
|     // The timeout for performing operations on the Couchbase cluster | ||||
|     KVTimeout time.Duration | ||||
| } | ||||
| ``` | ||||
|  | ||||
| ### Default Config | ||||
| ```go | ||||
| // ConfigDefault is the default config | ||||
| var ConfigDefault = Config{ | ||||
|     Host:              "127.0.0.1:8091", | ||||
|     Username:          "admin", | ||||
|     Password:          "123456", | ||||
|     Bucket:            "fiber_storage", | ||||
|     ConnectionTimeout: 3 * time.Second, | ||||
|     KVTimeout:         1 * time.Second, | ||||
| } | ||||
| ``` | ||||
							
								
								
									
										62
									
								
								couchbase/config.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										62
									
								
								couchbase/config.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,62 @@ | ||||
| package couchbase | ||||
|  | ||||
| import ( | ||||
| 	"time" | ||||
| ) | ||||
|  | ||||
| type Config struct { | ||||
| 	// The application username to Connect to the Couchbase cluster | ||||
| 	Username string | ||||
| 	// The application password to Connect to the Couchbase cluster | ||||
| 	Password string | ||||
| 	// The connection string for the Couchbase cluster | ||||
| 	Host string | ||||
| 	// The name of the bucket to Connect to | ||||
| 	Bucket string | ||||
| 	// The timeout for connecting to the Couchbase cluster | ||||
| 	ConnectionTimeout time.Duration | ||||
| 	// The timeout for performing operations on the Couchbase cluster | ||||
| 	KVTimeout time.Duration | ||||
| } | ||||
|  | ||||
| // ConfigDefault is the default config | ||||
| var ConfigDefault = Config{ | ||||
| 	Host:              "127.0.0.1:8091", | ||||
| 	Username:          "admin", | ||||
| 	Password:          "123456", | ||||
| 	Bucket:            "fiber_storage", | ||||
| 	ConnectionTimeout: 3 * time.Second, | ||||
| 	KVTimeout:         1 * time.Second, | ||||
| } | ||||
|  | ||||
| func configDefault(config ...Config) Config { | ||||
| 	// Return default config if nothing provided | ||||
| 	if len(config) < 1 { | ||||
| 		return ConfigDefault | ||||
| 	} | ||||
|  | ||||
| 	// Override default config | ||||
| 	cfg := config[0] | ||||
|  | ||||
| 	// Set default values | ||||
| 	if cfg.Username == "" { | ||||
| 		cfg.Username = ConfigDefault.Username | ||||
| 	} | ||||
| 	if cfg.Password == "" { | ||||
| 		cfg.Password = ConfigDefault.Password | ||||
| 	} | ||||
| 	if cfg.Host == "" { | ||||
| 		cfg.Host = ConfigDefault.Host | ||||
| 	} | ||||
| 	if cfg.Bucket == "" { | ||||
| 		cfg.Bucket = ConfigDefault.Bucket | ||||
| 	} | ||||
| 	if cfg.ConnectionTimeout == 0 { | ||||
| 		cfg.ConnectionTimeout = ConfigDefault.ConnectionTimeout | ||||
| 	} | ||||
| 	if cfg.KVTimeout == 0 { | ||||
| 		cfg.KVTimeout = ConfigDefault.KVTimeout | ||||
| 	} | ||||
|  | ||||
| 	return cfg | ||||
| } | ||||
							
								
								
									
										97
									
								
								couchbase/couchbase.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										97
									
								
								couchbase/couchbase.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,97 @@ | ||||
| package couchbase | ||||
|  | ||||
| import ( | ||||
| 	"time" | ||||
|  | ||||
| 	"github.com/couchbase/gocb/v2" | ||||
| ) | ||||
|  | ||||
| type Storage struct { | ||||
| 	cb     *gocb.Cluster | ||||
| 	bucket *gocb.Bucket | ||||
| } | ||||
|  | ||||
| func New(config ...Config) *Storage { | ||||
| 	// Set default config | ||||
| 	cfg := configDefault(config...) | ||||
|  | ||||
| 	cb, err := gocb.Connect(cfg.Host, gocb.ClusterOptions{ | ||||
| 		Authenticator: gocb.PasswordAuthenticator{ | ||||
| 			Username: cfg.Username, | ||||
| 			Password: cfg.Password, | ||||
| 		}, | ||||
| 		TimeoutsConfig: gocb.TimeoutsConfig{ | ||||
| 			ConnectTimeout: cfg.ConnectionTimeout, | ||||
| 			KVTimeout:      cfg.KVTimeout, | ||||
| 		}, | ||||
| 		Transcoder: gocb.NewLegacyTranscoder(), | ||||
| 	}) | ||||
|  | ||||
| 	if err != nil { | ||||
| 		panic(err) | ||||
| 	} | ||||
|  | ||||
| 	_, err = cb.Ping(&gocb.PingOptions{ | ||||
| 		Timeout: cfg.ConnectionTimeout, | ||||
| 	}) | ||||
|  | ||||
| 	if err != nil { | ||||
| 		panic(err) | ||||
| 	} | ||||
|  | ||||
| 	b := cb.Bucket(cfg.Bucket) | ||||
|  | ||||
| 	return &Storage{cb: cb, bucket: b} | ||||
| } | ||||
|  | ||||
| func (s *Storage) Get(key string) ([]byte, error) { | ||||
| 	out, err := s.bucket.DefaultCollection().Get(key, nil) | ||||
| 	if err != nil { | ||||
| 		switch e := err.(type) { | ||||
| 		case *gocb.KeyValueError: | ||||
| 			if e.InnerError.Error() == gocb.ErrDocumentNotFound.Error() { | ||||
| 				return nil, nil | ||||
| 			} | ||||
| 		default: //*gocb.TimeoutError,... | ||||
| 			return nil, err | ||||
| 		} | ||||
|  | ||||
| 		return nil, err | ||||
| 	} | ||||
|  | ||||
| 	var value []byte | ||||
| 	if err := out.Content(&value); err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
|  | ||||
| 	return value, nil | ||||
| } | ||||
|  | ||||
| func (s *Storage) Set(key string, val []byte, exp time.Duration) error { | ||||
| 	if _, err := s.bucket.DefaultCollection().Upsert(key, val, &gocb.UpsertOptions{ | ||||
| 		Expiry: exp, | ||||
| 	}); err != nil { | ||||
| 		return err | ||||
| 	} | ||||
|  | ||||
| 	return nil | ||||
| } | ||||
|  | ||||
| func (s *Storage) Delete(key string) error { | ||||
| 	if _, err := s.bucket.DefaultCollection().Remove(key, nil); err != nil { | ||||
| 		return err | ||||
| 	} | ||||
| 	return nil | ||||
| } | ||||
|  | ||||
| func (s *Storage) Reset() error { | ||||
| 	return s.cb.Buckets().FlushBucket(s.bucket.Name(), nil) | ||||
| } | ||||
|  | ||||
| func (s *Storage) Close() error { | ||||
| 	return s.cb.Close(nil) | ||||
| } | ||||
|  | ||||
| func (s *Storage) Conn() *gocb.Cluster { | ||||
| 	return s.cb | ||||
| } | ||||
							
								
								
									
										130
									
								
								couchbase/couchbase_test.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										130
									
								
								couchbase/couchbase_test.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,130 @@ | ||||
| package couchbase | ||||
|  | ||||
| import ( | ||||
| 	"testing" | ||||
| 	"time" | ||||
|  | ||||
| 	"github.com/gofiber/utils" | ||||
| ) | ||||
|  | ||||
| func TestSetCouchbase_ShouldReturnNoError(t *testing.T) { | ||||
| 	testStorage := New(Config{ | ||||
| 		Username: "admin", | ||||
| 		Password: "123456", | ||||
| 		Host:     "127.0.0.1:8091", | ||||
| 		Bucket:   "fiber_storage", | ||||
| 	}) | ||||
|  | ||||
| 	err := testStorage.Set("test", []byte("test"), 0) | ||||
|  | ||||
| 	utils.AssertEqual(t, nil, err) | ||||
| } | ||||
|  | ||||
| func TestGetCouchbase_ShouldReturnNil_WhenDocumentNotFound(t *testing.T) { | ||||
| 	testStorage := New(Config{ | ||||
| 		Username: "admin", | ||||
| 		Password: "123456", | ||||
| 		Host:     "127.0.0.1:8091", | ||||
| 		Bucket:   "fiber_storage", | ||||
| 	}) | ||||
|  | ||||
| 	val, err := testStorage.Get("not_found_key") | ||||
|  | ||||
| 	utils.AssertEqual(t, nil, err) | ||||
| 	utils.AssertEqual(t, 0, len(val)) | ||||
| } | ||||
|  | ||||
| func TestSetAndGet_GetShouldReturn_SettedValueWithoutError(t *testing.T) { | ||||
| 	testStorage := New(Config{ | ||||
| 		Username: "admin", | ||||
| 		Password: "123456", | ||||
| 		Host:     "127.0.0.1:8091", | ||||
| 		Bucket:   "fiber_storage", | ||||
| 	}) | ||||
|  | ||||
| 	err := testStorage.Set("test", []byte("fiber_test_value"), 0) | ||||
| 	utils.AssertEqual(t, nil, err) | ||||
|  | ||||
| 	val, err := testStorage.Get("test") | ||||
|  | ||||
| 	utils.AssertEqual(t, nil, err) | ||||
| 	utils.AssertEqual(t, val, []byte("fiber_test_value")) | ||||
| } | ||||
|  | ||||
| func TestSetAndGet_GetShouldReturnNil_WhenTTLExpired(t *testing.T) { | ||||
| 	testStorage := New(Config{ | ||||
| 		Username: "admin", | ||||
| 		Password: "123456", | ||||
| 		Host:     "127.0.0.1:8091", | ||||
| 		Bucket:   "fiber_storage", | ||||
| 	}) | ||||
|  | ||||
| 	err := testStorage.Set("test", []byte("fiber_test_value"), 3*time.Second) | ||||
| 	utils.AssertEqual(t, nil, err) | ||||
|  | ||||
| 	time.Sleep(6 * time.Second) | ||||
|  | ||||
| 	val, err := testStorage.Get("test") | ||||
|  | ||||
| 	utils.AssertEqual(t, nil, err) | ||||
| 	utils.AssertEqual(t, 0, len(val)) | ||||
| } | ||||
|  | ||||
| func TestSetAndDelete_DeleteShouldReturn_NoError(t *testing.T) { | ||||
| 	testStorage := New(Config{ | ||||
| 		Username: "admin", | ||||
| 		Password: "123456", | ||||
| 		Host:     "127.0.0.1:8091", | ||||
| 		Bucket:   "fiber_storage", | ||||
| 	}) | ||||
|  | ||||
| 	err := testStorage.Set("test", []byte("fiber_test_value"), 0) | ||||
| 	utils.AssertEqual(t, nil, err) | ||||
|  | ||||
| 	err = testStorage.Delete("test") | ||||
| 	utils.AssertEqual(t, nil, err) | ||||
|  | ||||
| 	_, err = testStorage.Get("test") | ||||
| 	utils.AssertEqual(t, nil, err) | ||||
| } | ||||
|  | ||||
| func TestSetAndReset_ResetShouldReturn_NoError(t *testing.T) { | ||||
| 	testStorage := New(Config{ | ||||
| 		Username: "admin", | ||||
| 		Password: "123456", | ||||
| 		Host:     "127.0.0.1:8091", | ||||
| 		Bucket:   "fiber_storage", | ||||
| 	}) | ||||
|  | ||||
| 	err := testStorage.Set("test", []byte("fiber_test_value"), 0) | ||||
| 	utils.AssertEqual(t, nil, err) | ||||
|  | ||||
| 	err = testStorage.Reset() | ||||
| 	utils.AssertEqual(t, nil, err) | ||||
|  | ||||
| 	_, err = testStorage.Get("test") | ||||
| 	utils.AssertEqual(t, nil, err) | ||||
| } | ||||
|  | ||||
| func TestClose_CloseShouldReturn_NoError(t *testing.T) { | ||||
| 	testStorage := New(Config{ | ||||
| 		Username: "admin", | ||||
| 		Password: "123456", | ||||
| 		Host:     "127.0.0.1:8091", | ||||
| 		Bucket:   "fiber_storage", | ||||
| 	}) | ||||
|  | ||||
| 	err := testStorage.Close() | ||||
| 	utils.AssertEqual(t, nil, err) | ||||
| } | ||||
|  | ||||
| func TestGetConn_ReturnsNotNill(t *testing.T) { | ||||
| 	testStorage := New(Config{ | ||||
| 		Username: "admin", | ||||
| 		Password: "123456", | ||||
| 		Host:     "127.0.0.1:8091", | ||||
| 		Bucket:   "fiber_storage", | ||||
| 	}) | ||||
| 	conn := testStorage.Conn() | ||||
| 	utils.AssertEqual(t, true, conn != nil) | ||||
| } | ||||
							
								
								
									
										14
									
								
								couchbase/go.mod
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								couchbase/go.mod
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| module github.com/gofiber/storage/couchbase | ||||
|  | ||||
| go 1.19 | ||||
|  | ||||
| require ( | ||||
| 	github.com/couchbase/gocb/v2 v2.6.3 | ||||
| 	github.com/gofiber/utils v1.1.0 | ||||
| ) | ||||
|  | ||||
| require ( | ||||
| 	github.com/couchbase/gocbcore/v10 v10.2.3 // indirect | ||||
| 	github.com/golang/snappy v0.0.4 // indirect | ||||
| 	github.com/google/uuid v1.3.0 // indirect | ||||
| ) | ||||
							
								
								
									
										30
									
								
								couchbase/go.sum
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								couchbase/go.sum
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,30 @@ | ||||
| github.com/couchbase/gocb/v2 v2.6.3 h1:5RsMo+RRfK0mVxHLAfpBz3/tHlgXZb1WBNItLk9Ab+c= | ||||
| github.com/couchbase/gocb/v2 v2.6.3/go.mod h1:yF5F6BHTZ/ZowhEuZbySbXrlI4rHd1TIhm5azOaMbJU= | ||||
| github.com/couchbase/gocbcore/v10 v10.2.3 h1:PEkRSNSkKjUBXx82Ucr094+anoiCG5GleOOQZOHo6D4= | ||||
| github.com/couchbase/gocbcore/v10 v10.2.3/go.mod h1:lYQIIk+tzoMcwtwU5GzPbDdqEkwkH3isI2rkSpfL0oM= | ||||
| github.com/couchbaselabs/gocaves/client v0.0.0-20230307083111-cc3960c624b1/go.mod h1:AVekAZwIY2stsJOMWLAS/0uA/+qdp7pjO8EHnl61QkY= | ||||
| github.com/couchbaselabs/gocaves/client v0.0.0-20230404095311-05e3ba4f0259 h1:2TXy68EGEzIMHOx9UvczR5ApVecwCfQZ0LjkmwMI6g4= | ||||
| github.com/couchbaselabs/gocaves/client v0.0.0-20230404095311-05e3ba4f0259/go.mod h1:AVekAZwIY2stsJOMWLAS/0uA/+qdp7pjO8EHnl61QkY= | ||||
| github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= | ||||
| github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= | ||||
| github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= | ||||
| github.com/gofiber/utils v1.1.0 h1:vdEBpn7AzIUJRhe+CiTOJdUcTg4Q9RK+pEa0KPbLdrM= | ||||
| github.com/gofiber/utils v1.1.0/go.mod h1:poZpsnhBykfnY1Mc0KeEa6mSHrS3dV0+oBWyeQmb2e0= | ||||
| github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= | ||||
| github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= | ||||
| github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= | ||||
| github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= | ||||
| github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= | ||||
| github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= | ||||
| github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= | ||||
| github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= | ||||
| github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c= | ||||
| github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= | ||||
| github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= | ||||
| github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= | ||||
| github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8= | ||||
| github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= | ||||
| gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= | ||||
| gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= | ||||
| gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= | ||||
| gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= | ||||
| @@ -1,4 +1,14 @@ | ||||
| # DynamoDB | ||||
| --- | ||||
| id: dynamodb | ||||
| title: DynamoDB | ||||
| --- | ||||
|  | ||||
|  | ||||
| [](https://gofiber.io/discord) | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| A DynamoDB storage driver using [aws/aws-sdk-go-v2](https://github.com/aws/aws-sdk-go-v2). | ||||
|  | ||||
| **Note:** If config fields of credentials not given, credentials are using from the environment variables, ~/.aws/credentials, or EC2 instance role. If config fields of credentials given, credentials are using from config. Look at: [specifying credentials](https://aws.github.io/aws-sdk-go-v2/docs/configuring-sdk/#specifying-credentials) | ||||
|   | ||||
| @@ -3,26 +3,26 @@ module github.com/gofiber/storage/dynamodb | ||||
| go 1.17 | ||||
|  | ||||
| require ( | ||||
| 	github.com/aws/aws-sdk-go-v2 v1.18.0 | ||||
| 	github.com/aws/aws-sdk-go-v2/config v1.18.25 | ||||
| 	github.com/aws/aws-sdk-go-v2/credentials v1.13.24 | ||||
| 	github.com/aws/aws-sdk-go-v2/feature/dynamodb/attributevalue v1.10.25 | ||||
| 	github.com/aws/aws-sdk-go-v2/service/dynamodb v1.19.7 | ||||
| 	github.com/aws/aws-sdk-go-v2 v1.18.1 | ||||
| 	github.com/aws/aws-sdk-go-v2/config v1.18.27 | ||||
| 	github.com/aws/aws-sdk-go-v2/credentials v1.13.26 | ||||
| 	github.com/aws/aws-sdk-go-v2/feature/dynamodb/attributevalue v1.10.30 | ||||
| 	github.com/aws/aws-sdk-go-v2/service/dynamodb v1.20.0 | ||||
| 	github.com/gofiber/utils v1.1.0 | ||||
| ) | ||||
|  | ||||
| require ( | ||||
| 	github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.3 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.33 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.27 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/internal/ini v1.3.34 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.14.11 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.4 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.34 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.28 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/internal/ini v1.3.35 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.14.14 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.9.11 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.7.27 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.27 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/service/sso v1.12.10 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/service/ssooidc v1.14.10 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/service/sts v1.19.0 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.7.28 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.28 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/service/sso v1.12.12 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/service/ssooidc v1.14.12 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/service/sts v1.19.2 // indirect | ||||
| 	github.com/aws/smithy-go v1.13.5 // indirect | ||||
| 	github.com/jmespath/go-jmespath v0.4.0 // indirect | ||||
| ) | ||||
|   | ||||
| @@ -1,35 +1,35 @@ | ||||
| github.com/aws/aws-sdk-go-v2 v1.18.0 h1:882kkTpSFhdgYRKVZ/VCgf7sd0ru57p2JCxz4/oN5RY= | ||||
| github.com/aws/aws-sdk-go-v2 v1.18.0/go.mod h1:uzbQtefpm44goOPmdKyAlXSNcwlRgF3ePWVW6EtJvvw= | ||||
| github.com/aws/aws-sdk-go-v2/config v1.18.25 h1:JuYyZcnMPBiFqn87L2cRppo+rNwgah6YwD3VuyvaW6Q= | ||||
| github.com/aws/aws-sdk-go-v2/config v1.18.25/go.mod h1:dZnYpD5wTW/dQF0rRNLVypB396zWCcPiBIvdvSWHEg4= | ||||
| github.com/aws/aws-sdk-go-v2/credentials v1.13.24 h1:PjiYyls3QdCrzqUN35jMWtUK1vqVZ+zLfdOa/UPFDp0= | ||||
| github.com/aws/aws-sdk-go-v2/credentials v1.13.24/go.mod h1:jYPYi99wUOPIFi0rhiOvXeSEReVOzBqFNOX5bXYoG2o= | ||||
| github.com/aws/aws-sdk-go-v2/feature/dynamodb/attributevalue v1.10.25 h1:/+Z/dCO+1QHOlCm7m9G61snvIaDRUTv/HXp+8HdESiY= | ||||
| github.com/aws/aws-sdk-go-v2/feature/dynamodb/attributevalue v1.10.25/go.mod h1:JQ0HJ+3LaAKHx3uwRUAfR/tb/gOlgAGPT6mZfIq55Ec= | ||||
| github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.3 h1:jJPgroehGvjrde3XufFIJUZVK5A2L9a3KwSFgKy9n8w= | ||||
| github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.3/go.mod h1:4Q0UFP0YJf0NrsEuEYHpM9fTSEVnD16Z3uyEF7J9JGM= | ||||
| github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.33 h1:kG5eQilShqmJbv11XL1VpyDbaEJzWxd4zRiCG30GSn4= | ||||
| github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.33/go.mod h1:7i0PF1ME/2eUPFcjkVIwq+DOygHEoK92t5cDqNgYbIw= | ||||
| github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.27 h1:vFQlirhuM8lLlpI7imKOMsjdQLuN9CPi+k44F/OFVsk= | ||||
| github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.27/go.mod h1:UrHnn3QV/d0pBZ6QBAEQcqFLf8FAzLmoUfPVIueOvoM= | ||||
| github.com/aws/aws-sdk-go-v2/internal/ini v1.3.34 h1:gGLG7yKaXG02/jBlg210R7VgQIotiQntNhsCFejawx8= | ||||
| github.com/aws/aws-sdk-go-v2/internal/ini v1.3.34/go.mod h1:Etz2dj6UHYuw+Xw830KfzCfWGMzqvUTCjUj5b76GVDc= | ||||
| github.com/aws/aws-sdk-go-v2/service/dynamodb v1.19.7 h1:yb2o8oh3Y+Gg2g+wlzrWS3pB89+dHrXayT/d9cs8McU= | ||||
| github.com/aws/aws-sdk-go-v2/service/dynamodb v1.19.7/go.mod h1:1MNss6sqoIsFGisX92do/5doiUCBrN7EjhZCS/8DUjI= | ||||
| github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.14.11 h1:WHi9VKMYGtWt2DzqeYHXzt55aflymO2EZ6axuKla8oU= | ||||
| github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.14.11/go.mod h1:pP+91QTpJMvcFTqGky6puHrkBs8oqoB3XOCiGRDaXwI= | ||||
| github.com/aws/aws-sdk-go-v2 v1.18.1 h1:+tefE750oAb7ZQGzla6bLkOwfcQCEtC5y2RqoqCeqKo= | ||||
| github.com/aws/aws-sdk-go-v2 v1.18.1/go.mod h1:uzbQtefpm44goOPmdKyAlXSNcwlRgF3ePWVW6EtJvvw= | ||||
| github.com/aws/aws-sdk-go-v2/config v1.18.27 h1:Az9uLwmssTE6OGTpsFqOnaGpLnKDqNYOJzWuC6UAYzA= | ||||
| github.com/aws/aws-sdk-go-v2/config v1.18.27/go.mod h1:0My+YgmkGxeqjXZb5BYme5pc4drjTnM+x1GJ3zv42Nw= | ||||
| github.com/aws/aws-sdk-go-v2/credentials v1.13.26 h1:qmU+yhKmOCyujmuPY7tf5MxR/RKyZrOPO3V4DobiTUk= | ||||
| github.com/aws/aws-sdk-go-v2/credentials v1.13.26/go.mod h1:GoXt2YC8jHUBbA4jr+W3JiemnIbkXOfxSXcisUsZ3os= | ||||
| github.com/aws/aws-sdk-go-v2/feature/dynamodb/attributevalue v1.10.30 h1:Gl2RjFb6SiAkv4ilcwvkYibluRyyMiJ0a0Cda3scPIs= | ||||
| github.com/aws/aws-sdk-go-v2/feature/dynamodb/attributevalue v1.10.30/go.mod h1:ubGJLkgDe5GVoxIKOT1mMhpfq9D9e/LJ07GdhecHMgo= | ||||
| github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.4 h1:LxK/bitrAr4lnh9LnIS6i7zWbCOdMsfzKFBI6LUCS0I= | ||||
| github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.4/go.mod h1:E1hLXN/BL2e6YizK1zFlYd8vsfi2GTjbjBazinMmeaM= | ||||
| github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.34 h1:A5UqQEmPaCFpedKouS4v+dHCTUo2sKqhoKO9U5kxyWo= | ||||
| github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.34/go.mod h1:wZpTEecJe0Btj3IYnDx/VlUzor9wm3fJHyvLpQF0VwY= | ||||
| github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.28 h1:srIVS45eQuewqz6fKKu6ZGXaq6FuFg5NzgQBAM6g8Y4= | ||||
| github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.28/go.mod h1:7VRpKQQedkfIEXb4k52I7swUnZP0wohVajJMRn3vsUw= | ||||
| github.com/aws/aws-sdk-go-v2/internal/ini v1.3.35 h1:LWA+3kDM8ly001vJ1X1waCuLJdtTl48gwkPKWy9sosI= | ||||
| github.com/aws/aws-sdk-go-v2/internal/ini v1.3.35/go.mod h1:0Eg1YjxE0Bhn56lx+SHJwCzhW+2JGtizsrx+lCqrfm0= | ||||
| github.com/aws/aws-sdk-go-v2/service/dynamodb v1.20.0 h1:ov790XKhwAziEXcl6WrjsbyWkGpboK7Cmikpe5gAzMw= | ||||
| github.com/aws/aws-sdk-go-v2/service/dynamodb v1.20.0/go.mod h1:W1oiFegjVosgjIwb2Vv45jiCQT1ee8x85u8EyZRYLes= | ||||
| github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.14.14 h1:T9FMVvefm8TWwyVYpFVohP2iLM1QnqAB0m/qksVqs+w= | ||||
| github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.14.14/go.mod h1:31kKOlv+a+XLCu0wDK8BeeCOjdcZihEoQcLiPIZoyw4= | ||||
| github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.9.11 h1:y2+VQzC6Zh2ojtV2LoC0MNwHWc6qXv/j2vrQtlftkdA= | ||||
| github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.9.11/go.mod h1:iV4q2hsqtNECrfmlXyord9u4zyuFEJX9eLgLpSPzWA8= | ||||
| github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.7.27 h1:QmyPCRZNMR1pFbiOi9kBZWZuKrKB9LD4cxltxQk4tNE= | ||||
| github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.7.27/go.mod h1:DfuVY36ixXnsG+uTqnoLWunXAKJ4qjccoFrXUPpj+hs= | ||||
| github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.27 h1:0iKliEXAcCa2qVtRs7Ot5hItA2MsufrphbRFlz1Owxo= | ||||
| github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.27/go.mod h1:EOwBD4J4S5qYszS5/3DpkejfuK+Z5/1uzICfPaZLtqw= | ||||
| github.com/aws/aws-sdk-go-v2/service/sso v1.12.10 h1:UBQjaMTCKwyUYwiVnUt6toEJwGXsLBI6al083tpjJzY= | ||||
| github.com/aws/aws-sdk-go-v2/service/sso v1.12.10/go.mod h1:ouy2P4z6sJN70fR3ka3wD3Ro3KezSxU6eKGQI2+2fjI= | ||||
| github.com/aws/aws-sdk-go-v2/service/ssooidc v1.14.10 h1:PkHIIJs8qvq0e5QybnZoG1K/9QTrLr9OsqCIo59jOBA= | ||||
| github.com/aws/aws-sdk-go-v2/service/ssooidc v1.14.10/go.mod h1:AFvkxc8xfBe8XA+5St5XIHHrQQtkxqrRincx4hmMHOk= | ||||
| github.com/aws/aws-sdk-go-v2/service/sts v1.19.0 h1:2DQLAKDteoEDI8zpCzqBMaZlJuoE9iTYD0gFmXVax9E= | ||||
| github.com/aws/aws-sdk-go-v2/service/sts v1.19.0/go.mod h1:BgQOMsg8av8jset59jelyPW7NoZcZXLVpDsXunGDrk8= | ||||
| github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.7.28 h1:/D994rtMQd1jQ2OY+7tvUlMlrv1L1c7Xtma/FhkbVtY= | ||||
| github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.7.28/go.mod h1:3bJI2pLY3ilrqO5EclusI1GbjFJh1iXYrhOItf2sjKw= | ||||
| github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.28 h1:bkRyG4a929RCnpVSTvLM2j/T4ls015ZhhYApbmYs15s= | ||||
| github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.28/go.mod h1:jj7znCIg05jXlaGBlFMGP8+7UN3VtCkRBG2spnmRQkU= | ||||
| github.com/aws/aws-sdk-go-v2/service/sso v1.12.12 h1:nneMBM2p79PGWBQovYO/6Xnc2ryRMw3InnDJq1FHkSY= | ||||
| github.com/aws/aws-sdk-go-v2/service/sso v1.12.12/go.mod h1:HuCOxYsF21eKrerARYO6HapNeh9GBNq7fius2AcwodY= | ||||
| github.com/aws/aws-sdk-go-v2/service/ssooidc v1.14.12 h1:2qTR7IFk7/0IN/adSFhYu9Xthr0zVFTgBrmPldILn80= | ||||
| github.com/aws/aws-sdk-go-v2/service/ssooidc v1.14.12/go.mod h1:E4VrHCPzmVB/KFXtqBGKb3c8zpbNBgKe3fisDNLAW5w= | ||||
| github.com/aws/aws-sdk-go-v2/service/sts v1.19.2 h1:XFJ2Z6sNUUcAz9poj+245DMkrHE4h2j5I9/xD50RHfE= | ||||
| github.com/aws/aws-sdk-go-v2/service/sts v1.19.2/go.mod h1:dp0yLPsLBOi++WTxzCjA/oZqi6NPIhoR+uF7GeMU9eg= | ||||
| github.com/aws/smithy-go v1.13.5 h1:hgz0X/DX0dGqTYpGALqXJoRKRj5oQ7150i5FdTePzO8= | ||||
| github.com/aws/smithy-go v1.13.5/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= | ||||
| github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= | ||||
|   | ||||
							
								
								
									
										85
									
								
								etcd/README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										85
									
								
								etcd/README.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,85 @@ | ||||
| --- | ||||
| id: etcd | ||||
| title: Etcd | ||||
| --- | ||||
|  | ||||
|  | ||||
| [](https://gofiber.io/discord) | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| A Etcd storage driver using [`etcd-io/etcd`](https://github.com/etcd-io/etcd). | ||||
|  | ||||
| ### Table of Contents | ||||
| - [Signatures](#signatures) | ||||
| - [Installation](#installation) | ||||
| - [Examples](#examples) | ||||
| - [Config](#config) | ||||
| - [Default Config](#default-config) | ||||
|  | ||||
| ### Signatures | ||||
| ```go | ||||
| func New(config ...Config) *Storage | ||||
| func (s *Storage) Get(key string) ([]byte, error) | ||||
| func (s *Storage) Set(key string, val []byte, exp time.Duration) error | ||||
| func (s *Storage) Delete(key string) error | ||||
| func (s *Storage) Reset() error | ||||
| func (s *Storage) Close() error | ||||
| func (s *Storage) Conn() *clientv3.Client | ||||
| ``` | ||||
|  | ||||
| ### Installation | ||||
| Etcd is tested on the 2 last [Go versions](https://golang.org/dl/) with support for modules. So make sure to initialize one first if you didn't do that yet: | ||||
| ```bash | ||||
| go mod init github.com/<user>/<repo> | ||||
| ``` | ||||
| And then install the etcd implementation: | ||||
| ```bash | ||||
| go get github.com/gofiber/storage/etcd | ||||
| ``` | ||||
|  | ||||
| ### Examples | ||||
| Import the storage package. | ||||
| ```go | ||||
| import "github.com/gofiber/storage/etcd" | ||||
| ``` | ||||
|  | ||||
| You can use the following possibilities to create a storage: | ||||
| ```go | ||||
| // Initialize default config | ||||
| store := etcd.New() | ||||
|  | ||||
| // Initialize custom config | ||||
| store := etcd.New(Config{ | ||||
|     Endpoints: []string{"localhost:2379"}, | ||||
| }) | ||||
|  | ||||
| ``` | ||||
|  | ||||
| ### Config | ||||
| ```go | ||||
| type Config struct { | ||||
|     // Endpoints is a list of URLs. | ||||
|     Endpoints   []string | ||||
|     // DialTimeout is the timeout for failing to establish a connection. | ||||
|     DialTimeout time.Duration | ||||
|     // Username is a username for authentication. | ||||
|     Username    string | ||||
|     // Password is a password for authentication. | ||||
|     Password    string | ||||
| 	// TLS holds the client secure credentials, if any. | ||||
| 	TLS *tls.Config | ||||
| } | ||||
| ``` | ||||
|  | ||||
| ### Default Config | ||||
| ```go | ||||
| var ConfigDefault = Config{ | ||||
|     Endpoints:   []string{"localhost:2379"}, | ||||
|     DialTimeout: 2 * time.Second, | ||||
|     Username:    "", | ||||
|     Password:    "", | ||||
|     TLS:         nil, | ||||
| } | ||||
| ``` | ||||
							
								
								
									
										52
									
								
								etcd/config.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										52
									
								
								etcd/config.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,52 @@ | ||||
| package etcd | ||||
|  | ||||
| import ( | ||||
| 	"crypto/tls" | ||||
| 	"time" | ||||
| ) | ||||
|  | ||||
| // Config defines the config for storage. | ||||
| type Config struct { | ||||
| 	// Endpoints is a list of URLs. | ||||
| 	Endpoints []string | ||||
| 	// DialTimeout is the timeout for failing to establish a connection. | ||||
| 	DialTimeout time.Duration | ||||
| 	// Username is a username for authentication. | ||||
| 	Username string | ||||
| 	// Password is a password for authentication. | ||||
| 	Password string | ||||
| 	// TLS holds the client secure credentials, if any. | ||||
| 	TLS *tls.Config | ||||
| } | ||||
|  | ||||
| // ConfigDefault is the default config | ||||
| var ConfigDefault = Config{ | ||||
| 	Endpoints:   []string{"localhost:2379"}, | ||||
| 	DialTimeout: 2 * time.Second, | ||||
| 	Username:    "", | ||||
| 	Password:    "", | ||||
| 	TLS:         nil, | ||||
| } | ||||
|  | ||||
| // Helper function to set default values | ||||
| func configDefault(config ...Config) Config { | ||||
| 	// Return default config if nothing provided | ||||
| 	if len(config) < 1 { | ||||
| 		return ConfigDefault | ||||
| 	} | ||||
|  | ||||
| 	// Override default config | ||||
| 	cfg := config[0] | ||||
| 	// Set default values | ||||
| 	if cfg.Username == "" { | ||||
| 		cfg.Username = ConfigDefault.Username | ||||
| 	} | ||||
| 	if cfg.Password == "" { | ||||
| 		cfg.Password = ConfigDefault.Password | ||||
| 	} | ||||
| 	if cfg.DialTimeout == 0 { | ||||
| 		cfg.DialTimeout = ConfigDefault.DialTimeout | ||||
| 	} | ||||
|  | ||||
| 	return cfg | ||||
| } | ||||
							
								
								
									
										100
									
								
								etcd/etcd.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										100
									
								
								etcd/etcd.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,100 @@ | ||||
| package etcd | ||||
|  | ||||
| import ( | ||||
| 	"context" | ||||
| 	"go.etcd.io/etcd/client/v3" | ||||
| 	"time" | ||||
| ) | ||||
|  | ||||
| type Storage struct { | ||||
| 	db *clientv3.Client | ||||
| } | ||||
|  | ||||
| func New(config ...Config) *Storage { | ||||
| 	cfg := configDefault(config...) | ||||
|  | ||||
| 	cli, err := clientv3.New(clientv3.Config{ | ||||
| 		Endpoints:   cfg.Endpoints, | ||||
| 		DialTimeout: cfg.DialTimeout, | ||||
| 		Username:    cfg.Username, | ||||
| 		Password:    cfg.Password, | ||||
| 		TLS:         cfg.TLS, | ||||
| 	}) | ||||
| 	if err != nil { | ||||
| 		panic(err) | ||||
| 	} | ||||
|  | ||||
| 	store := &Storage{ | ||||
| 		db: cli, | ||||
| 	} | ||||
|  | ||||
| 	return store | ||||
| } | ||||
|  | ||||
| func (s *Storage) Get(key string) ([]byte, error) { | ||||
| 	if len(key) <= 0 { | ||||
| 		return nil, nil | ||||
| 	} | ||||
| 	item, err := s.db.Get(context.Background(), key) | ||||
|  | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
|  | ||||
| 	if len(item.Kvs) <= 0 { | ||||
| 		return nil, nil | ||||
| 	} | ||||
|  | ||||
| 	return item.Kvs[0].Value, nil | ||||
| } | ||||
|  | ||||
| func (s *Storage) Set(key string, val []byte, exp time.Duration) error { | ||||
| 	// Ain't Nobody Got Time For That | ||||
| 	if len(key) <= 0 || len(val) <= 0 { | ||||
| 		return nil | ||||
| 	} | ||||
|  | ||||
| 	lease, err := s.db.Grant(context.Background(), int64(exp.Seconds())) | ||||
|  | ||||
| 	if err != nil { | ||||
| 		return err | ||||
| 	} | ||||
|  | ||||
| 	_, err = s.db.Put(context.Background(), key, string(val), clientv3.WithLease(lease.ID)) | ||||
| 	if err != nil { | ||||
| 		return err | ||||
| 	} | ||||
|  | ||||
| 	return nil | ||||
| } | ||||
|  | ||||
| func (s *Storage) Delete(key string) error { | ||||
| 	if len(key) <= 0 { | ||||
| 		return nil | ||||
| 	} | ||||
|  | ||||
| 	_, err := s.db.Delete(context.Background(), key) | ||||
| 	if err != nil { | ||||
| 		return err | ||||
| 	} | ||||
|  | ||||
| 	return nil | ||||
| } | ||||
|  | ||||
| func (s *Storage) Reset() error { | ||||
| 	_, err := s.db.Delete(context.Background(), "", clientv3.WithPrefix()) | ||||
|  | ||||
| 	if err != nil { | ||||
| 		return err | ||||
| 	} | ||||
|  | ||||
| 	return nil | ||||
| } | ||||
|  | ||||
| func (s *Storage) Close() error { | ||||
| 	return s.db.Close() | ||||
| } | ||||
|  | ||||
| func (s *Storage) Conn() *clientv3.Client { | ||||
| 	return s.db | ||||
| } | ||||
							
								
								
									
										110
									
								
								etcd/etcd_test.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										110
									
								
								etcd/etcd_test.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,110 @@ | ||||
| package etcd | ||||
|  | ||||
| import ( | ||||
| 	"github.com/gofiber/utils" | ||||
| 	"testing" | ||||
| 	"time" | ||||
| ) | ||||
|  | ||||
| func TestSetEtcd_ShouldReturnNoError(t *testing.T) { | ||||
| 	testStorage := New(Config{ | ||||
| 		Endpoints: []string{"localhost:2379"}, | ||||
| 	}) | ||||
|  | ||||
| 	var ( | ||||
| 		key = "john" | ||||
| 		val = []byte("doe") | ||||
| 	) | ||||
|  | ||||
| 	err := testStorage.Set(key, val, 0) | ||||
| 	utils.AssertEqual(t, nil, err) | ||||
| } | ||||
|  | ||||
| func TestGetEtcd_ShouldReturnNil_WhenDocumentNotFound(t *testing.T) { | ||||
| 	testStorage := New(Config{ | ||||
| 		Endpoints: []string{"localhost:2379"}, | ||||
| 	}) | ||||
|  | ||||
| 	val, err := testStorage.Get("not_found_key") | ||||
|  | ||||
| 	utils.AssertEqual(t, nil, err) | ||||
| 	utils.AssertEqual(t, 0, len(val)) | ||||
| } | ||||
|  | ||||
| func TestSetAndGet_GetShouldReturn_SettedValueWithoutError(t *testing.T) { | ||||
| 	testStorage := New(Config{ | ||||
| 		Endpoints: []string{"localhost:2379"}, | ||||
| 	}) | ||||
|  | ||||
| 	err := testStorage.Set("test", []byte("fiber_test_value"), 0) | ||||
| 	utils.AssertEqual(t, nil, err) | ||||
|  | ||||
| 	val, err := testStorage.Get("test") | ||||
|  | ||||
| 	utils.AssertEqual(t, nil, err) | ||||
| 	utils.AssertEqual(t, val, []byte("fiber_test_value")) | ||||
| } | ||||
|  | ||||
| func TestSetAndGet_GetShouldReturnNil_WhenTTLExpired(t *testing.T) { | ||||
| 	testStorage := New(Config{ | ||||
| 		Endpoints: []string{"localhost:2379"}, | ||||
| 	}) | ||||
|  | ||||
| 	err := testStorage.Set("test", []byte("fiber_test_value"), 3*time.Second) | ||||
| 	utils.AssertEqual(t, nil, err) | ||||
|  | ||||
| 	time.Sleep(6 * time.Second) | ||||
|  | ||||
| 	val, err := testStorage.Get("test") | ||||
|  | ||||
| 	utils.AssertEqual(t, nil, err) | ||||
| 	utils.AssertEqual(t, 0, len(val)) | ||||
| } | ||||
|  | ||||
| func TestSetAndDelete_DeleteShouldReturn_NoError(t *testing.T) { | ||||
| 	testStorage := New(Config{ | ||||
| 		Endpoints: []string{"localhost:2379"}, | ||||
| 	}) | ||||
|  | ||||
| 	err := testStorage.Set("test", []byte("fiber_test_value"), 0) | ||||
| 	utils.AssertEqual(t, nil, err) | ||||
|  | ||||
| 	err = testStorage.Delete("test") | ||||
| 	utils.AssertEqual(t, nil, err) | ||||
|  | ||||
| 	_, err = testStorage.Get("test") | ||||
| 	utils.AssertEqual(t, nil, err) | ||||
| } | ||||
|  | ||||
| func TestSetAndReset_ResetShouldReturn_NoError(t *testing.T) { | ||||
| 	testStorage := New(Config{ | ||||
| 		Endpoints: []string{"localhost:2379"}, | ||||
| 	}) | ||||
|  | ||||
| 	err := testStorage.Set("test", []byte("fiber_test_value"), 0) | ||||
| 	utils.AssertEqual(t, nil, err) | ||||
|  | ||||
| 	err = testStorage.Reset() | ||||
| 	utils.AssertEqual(t, nil, err) | ||||
|  | ||||
| 	_, err = testStorage.Get("test") | ||||
| 	utils.AssertEqual(t, nil, err) | ||||
| } | ||||
|  | ||||
| func TestClose_CloseShouldReturn_NoError(t *testing.T) { | ||||
| 	testStorage := New(Config{ | ||||
| 		Endpoints: []string{"localhost:2379"}, | ||||
| 	}) | ||||
|  | ||||
| 	err := testStorage.Close() | ||||
| 	utils.AssertEqual(t, nil, err) | ||||
| } | ||||
|  | ||||
| func TestGetConn_ReturnsNotNill(t *testing.T) { | ||||
| 	testStorage := New(Config{ | ||||
| 		Endpoints: []string{"localhost:2379"}, | ||||
| 	}) | ||||
|  | ||||
| 	conn := testStorage.Conn() | ||||
| 	utils.AssertEqual(t, true, conn != nil) | ||||
| } | ||||
							
								
								
									
										26
									
								
								etcd/go.mod
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								etcd/go.mod
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,26 @@ | ||||
| module github.com/gofiber/storage/etcd | ||||
|  | ||||
| go 1.19 | ||||
|  | ||||
| require ( | ||||
| 	github.com/gofiber/utils v1.1.0 | ||||
| 	go.etcd.io/etcd/client/v3 v3.5.9 | ||||
| ) | ||||
|  | ||||
| require ( | ||||
| 	github.com/coreos/go-semver v0.3.1 // indirect | ||||
| 	github.com/coreos/go-systemd/v22 v22.3.2 // indirect | ||||
| 	github.com/gogo/protobuf v1.3.2 // indirect | ||||
| 	github.com/golang/protobuf v1.5.3 // indirect | ||||
| 	go.etcd.io/etcd/api/v3 v3.5.9 // indirect | ||||
| 	go.etcd.io/etcd/client/pkg/v3 v3.5.9 // indirect | ||||
| 	go.uber.org/atomic v1.7.0 // indirect | ||||
| 	go.uber.org/multierr v1.6.0 // indirect | ||||
| 	go.uber.org/zap v1.24.0 // indirect | ||||
| 	golang.org/x/net v0.8.0 // indirect | ||||
| 	golang.org/x/sys v0.6.0 // indirect | ||||
| 	golang.org/x/text v0.8.0 // indirect | ||||
| 	google.golang.org/genproto v0.0.0-20230306155012-7f2fa6fef1f4 // indirect | ||||
| 	google.golang.org/grpc v1.55.0 // indirect | ||||
| 	google.golang.org/protobuf v1.30.0 // indirect | ||||
| ) | ||||
							
								
								
									
										83
									
								
								etcd/go.sum
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										83
									
								
								etcd/go.sum
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,83 @@ | ||||
| github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8= | ||||
| github.com/coreos/go-semver v0.3.1 h1:yi21YpKnrx1gt5R+la8n5WgS0kCrsPp33dmEyHReZr4= | ||||
| github.com/coreos/go-semver v0.3.1/go.mod h1:irMmmIw/7yzSRPWryHsK7EYSg09caPQL03VsM8rvUec= | ||||
| github.com/coreos/go-systemd/v22 v22.3.2 h1:D9/bQk5vlXQFZ6Kwuu6zaiXJ9oTPe68++AzAJc1DzSI= | ||||
| github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= | ||||
| github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= | ||||
| github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= | ||||
| github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= | ||||
| github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= | ||||
| github.com/gofiber/utils v1.1.0 h1:vdEBpn7AzIUJRhe+CiTOJdUcTg4Q9RK+pEa0KPbLdrM= | ||||
| github.com/gofiber/utils v1.1.0/go.mod h1:poZpsnhBykfnY1Mc0KeEa6mSHrS3dV0+oBWyeQmb2e0= | ||||
| github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= | ||||
| github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= | ||||
| github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= | ||||
| github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= | ||||
| github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= | ||||
| github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= | ||||
| github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= | ||||
| github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= | ||||
| github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= | ||||
| github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I= | ||||
| github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= | ||||
| github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= | ||||
| github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= | ||||
| github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= | ||||
| github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk= | ||||
| github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= | ||||
| github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= | ||||
| go.etcd.io/etcd/api/v3 v3.5.9 h1:4wSsluwyTbGGmyjJktOf3wFQoTBIURXHnq9n/G/JQHs= | ||||
| go.etcd.io/etcd/api/v3 v3.5.9/go.mod h1:uyAal843mC8uUVSLWz6eHa/d971iDGnCRpmKd2Z+X8k= | ||||
| go.etcd.io/etcd/client/pkg/v3 v3.5.9 h1:oidDC4+YEuSIQbsR94rY9gur91UPL6DnxDCIYd2IGsE= | ||||
| go.etcd.io/etcd/client/pkg/v3 v3.5.9/go.mod h1:y+CzeSmkMpWN2Jyu1npecjB9BBnABxGM4pN8cGuJeL4= | ||||
| go.etcd.io/etcd/client/v3 v3.5.9 h1:r5xghnU7CwbUxD/fbUtRyJGaYNfDun8sp/gTr1hew6E= | ||||
| go.etcd.io/etcd/client/v3 v3.5.9/go.mod h1:i/Eo5LrZ5IKqpbtpPDuaUnDOUv471oDg8cjQaUr2MbA= | ||||
| go.uber.org/atomic v1.7.0 h1:ADUqmZGgLDDfbSL9ZmPxKTybcoEYHgpYfELNoN+7hsw= | ||||
| go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= | ||||
| go.uber.org/goleak v1.1.11 h1:wy28qYRKZgnJTxGxvye5/wgWr1EKjmUDGYox5mGlRlI= | ||||
| go.uber.org/multierr v1.6.0 h1:y6IPFStTAIT5Ytl7/XYmHvzXQ7S3g/IeZW9hyZ5thw4= | ||||
| go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= | ||||
| go.uber.org/zap v1.24.0 h1:FiJd5l1UOLj0wCgbSE0rwwXHzEdAZS6hiiSnxJN/D60= | ||||
| go.uber.org/zap v1.24.0/go.mod h1:2kMP+WWQ8aoFoedH3T2sq6iJ2yDWpHbP0f6MQbS9Gkg= | ||||
| golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= | ||||
| golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= | ||||
| golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= | ||||
| golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= | ||||
| golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= | ||||
| golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= | ||||
| golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= | ||||
| golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= | ||||
| golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= | ||||
| golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ= | ||||
| golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= | ||||
| golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | ||||
| golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | ||||
| golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | ||||
| golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= | ||||
| golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ= | ||||
| golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | ||||
| golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= | ||||
| golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= | ||||
| golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68= | ||||
| golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= | ||||
| golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= | ||||
| golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= | ||||
| golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= | ||||
| golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= | ||||
| golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= | ||||
| golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= | ||||
| golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= | ||||
| golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= | ||||
| google.golang.org/genproto v0.0.0-20230306155012-7f2fa6fef1f4 h1:DdoeryqhaXp1LtT/emMP1BRJPHHKFi5akj/nbx/zNTA= | ||||
| google.golang.org/genproto v0.0.0-20230306155012-7f2fa6fef1f4/go.mod h1:NWraEVixdDnqcqQ30jipen1STv2r/n24Wb7twVTGR4s= | ||||
| google.golang.org/grpc v1.55.0 h1:3Oj82/tFSCeUrRTg/5E/7d/W5A1tj6Ky1ABAuZuv5ag= | ||||
| google.golang.org/grpc v1.55.0/go.mod h1:iYEXKGkEBhg1PjZQvoYEVPTDkHo1/bjTnfwTeGONTY8= | ||||
| google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= | ||||
| google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= | ||||
| google.golang.org/protobuf v1.30.0 h1:kPPoIgf3TsEvrm0PFe15JQ+570QVxYzEvvHqChK+cng= | ||||
| google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= | ||||
| gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= | ||||
| gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= | ||||
| gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= | ||||
| @@ -1,4 +1,13 @@ | ||||
| # Memcache | ||||
| --- | ||||
| id: memcache | ||||
| title: Memcache | ||||
| --- | ||||
|  | ||||
|  | ||||
| [](https://gofiber.io/discord) | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| A Memcache storage driver using [`bradfitz/gomemcache`](https://github.com/bradfitz/gomemcache). | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,14 @@ | ||||
| # Memory | ||||
| --- | ||||
| id: memory | ||||
| title: Memory | ||||
| --- | ||||
|  | ||||
|  | ||||
|  | ||||
| [](https://gofiber.io/discord) | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| An in-memory storage driver. | ||||
|  | ||||
|   | ||||
| @@ -1,4 +1,13 @@ | ||||
| # MongoDB | ||||
| --- | ||||
| id: mongodb | ||||
| title: MongoDB | ||||
| --- | ||||
|  | ||||
|  | ||||
| [](https://gofiber.io/discord) | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| A MongoDB storage driver using [mongodb/mongo-go-driver](https://github.com/mongodb/mongo-go-driver). | ||||
|  | ||||
|   | ||||
| @@ -4,19 +4,18 @@ go 1.17 | ||||
|  | ||||
| require ( | ||||
| 	github.com/gofiber/utils v1.1.0 | ||||
| 	go.mongodb.org/mongo-driver v1.11.6 | ||||
| 	go.mongodb.org/mongo-driver v1.12.0 | ||||
| ) | ||||
|  | ||||
| require ( | ||||
| 	github.com/golang/snappy v0.0.4 // indirect | ||||
| 	github.com/klauspost/compress v1.13.6 // indirect | ||||
| 	github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe // indirect | ||||
| 	github.com/pkg/errors v0.9.1 // indirect | ||||
| 	github.com/xdg-go/pbkdf2 v1.0.0 // indirect | ||||
| 	github.com/xdg-go/scram v1.1.1 // indirect | ||||
| 	github.com/xdg-go/stringprep v1.0.3 // indirect | ||||
| 	github.com/xdg-go/scram v1.1.2 // indirect | ||||
| 	github.com/xdg-go/stringprep v1.0.4 // indirect | ||||
| 	github.com/youmark/pkcs8 v0.0.0-20201027041543-1326539a0a0a // indirect | ||||
| 	golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d // indirect | ||||
| 	golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect | ||||
| 	golang.org/x/text v0.3.8 // indirect | ||||
| 	golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4 // indirect | ||||
| 	golang.org/x/text v0.7.0 // indirect | ||||
| ) | ||||
|   | ||||
| @@ -1,4 +1,3 @@ | ||||
| github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= | ||||
| github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= | ||||
| github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= | ||||
| github.com/gofiber/utils v1.1.0 h1:vdEBpn7AzIUJRhe+CiTOJdUcTg4Q9RK+pEa0KPbLdrM= | ||||
| @@ -10,34 +9,20 @@ github.com/google/go-cmp v0.5.2 h1:X2ev0eStA3AbceY54o37/0PQ/UWqKEiiO2dKL5OPaFM= | ||||
| github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= | ||||
| github.com/klauspost/compress v1.13.6 h1:P76CopJELS0TiO2mebmnzgWaajssP/EszplttgQxcgc= | ||||
| github.com/klauspost/compress v1.13.6/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= | ||||
| github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= | ||||
| github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= | ||||
| github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= | ||||
| github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= | ||||
| github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= | ||||
| github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe h1:iruDEfMl2E6fbMZ9s0scYfZQ84/6SPL6zC8ACM2oIL0= | ||||
| github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe/go.mod h1:wL8QJuTMNUDYhXwkmfOly8iTdp5TEcJFWZD2D7SIkUc= | ||||
| github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= | ||||
| github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= | ||||
| github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= | ||||
| github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= | ||||
| github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= | ||||
| github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0= | ||||
| github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= | ||||
| github.com/tidwall/pretty v1.0.0 h1:HsD+QiTn7sK6flMKIvNmpqz1qrpP3Ps6jOKIKMooyg4= | ||||
| github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk= | ||||
| github.com/xdg-go/pbkdf2 v1.0.0 h1:Su7DPu48wXMwC3bs7MCNG+z4FhcyEuz5dlvchbq0B0c= | ||||
| github.com/xdg-go/pbkdf2 v1.0.0/go.mod h1:jrpuAogTd400dnrH08LKmI/xc1MbPOebTwRqcT5RDeI= | ||||
| github.com/xdg-go/scram v1.1.1 h1:VOMT+81stJgXW3CpHyqHN3AXDYIMsx56mEFrB37Mb/E= | ||||
| github.com/xdg-go/scram v1.1.1/go.mod h1:RaEWvsqvNKKvBPvcKeFjrG2cJqOkHTiyTpzz23ni57g= | ||||
| github.com/xdg-go/stringprep v1.0.3 h1:kdwGpVNwPFtjs98xCGkHjQtGKh86rDcRZN17QEMCOIs= | ||||
| github.com/xdg-go/stringprep v1.0.3/go.mod h1:W3f5j4i+9rC0kuIEJL0ky1VpHXQU3ocBgklLGvcBnW8= | ||||
| github.com/xdg-go/scram v1.1.2 h1:FHX5I5B4i4hKRVRBCFRxq1iQRej7WO3hhBuJf+UUySY= | ||||
| github.com/xdg-go/scram v1.1.2/go.mod h1:RT/sEzTbU5y00aCK8UOx6R7YryM0iF1N2MOmC3kKLN4= | ||||
| github.com/xdg-go/stringprep v1.0.4 h1:XLI/Ng3O1Atzq0oBs3TWm+5ZVgkq2aqdlvP9JtoZ6c8= | ||||
| github.com/xdg-go/stringprep v1.0.4/go.mod h1:mPGuuIYwz7CmR2bT9j4GbQqutWS1zV24gijq1dTyGkM= | ||||
| github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d/go.mod h1:rHwXgn7JulP+udvsHwJoVG1YGAP6VLg4y9I5dyZdqmA= | ||||
| github.com/youmark/pkcs8 v0.0.0-20201027041543-1326539a0a0a h1:fZHgsYlfvtyqToslyjUt3VOPF4J7aK/3MPcK7xp3PDk= | ||||
| github.com/youmark/pkcs8 v0.0.0-20201027041543-1326539a0a0a/go.mod h1:ul22v+Nro/R083muKhosV54bj5niojjWZvU8xrevuH4= | ||||
| github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= | ||||
| go.mongodb.org/mongo-driver v1.11.6 h1:XM7G6PjiGAO5betLF13BIa5TlLUUE3uJ/2Ox3Lz1K+o= | ||||
| go.mongodb.org/mongo-driver v1.11.6/go.mod h1:G9TgswdsWjX4tmDA5zfs2+6AEPpYJwqblyjsfuh8oXY= | ||||
| go.mongodb.org/mongo-driver v1.12.0 h1:aPx33jmn/rQuJXPQLZQ8NtfPQG8CaqgLThFtqRb0PiE= | ||||
| go.mongodb.org/mongo-driver v1.12.0/go.mod h1:AZkxhPnFJUoH7kZlFkVKucV20K387miPfm7oimrSmK0= | ||||
| golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= | ||||
| golang.org/x/crypto v0.0.0-20200302210943-78000ba7a073/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= | ||||
| golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= | ||||
| @@ -50,8 +35,6 @@ golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v | ||||
| golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= | ||||
| golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= | ||||
| golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | ||||
| golang.org/x/sync v0.0.0-20210220032951-036812b2e83c h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ= | ||||
| golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | ||||
| golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4 h1:uVc8UZUe6tr40fFVnUP5Oj+veunVezqYl9z7DYw9xzw= | ||||
| golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | ||||
| golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= | ||||
| @@ -67,16 +50,12 @@ golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= | ||||
| golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= | ||||
| golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= | ||||
| golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= | ||||
| golang.org/x/text v0.3.8 h1:nAL+RVCQ9uMn3vJZbV+MRnydTJFPf8qqY42YiA6MrqY= | ||||
| golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= | ||||
| golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= | ||||
| golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= | ||||
| golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= | ||||
| golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= | ||||
| golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= | ||||
| golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= | ||||
| golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= | ||||
| golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= | ||||
| gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= | ||||
| gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= | ||||
| gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= | ||||
| gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= | ||||
| gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= | ||||
|   | ||||
| @@ -1,4 +1,13 @@ | ||||
| # MSSQL | ||||
| --- | ||||
| id: mssql | ||||
| title: MSSQL | ||||
| --- | ||||
|  | ||||
|  | ||||
| [](https://gofiber.io/discord) | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| A MSSQL storage driver using [microsoft/go-mssqldb](https://github.com/microsoft/go-mssqldb). | ||||
|  | ||||
|   | ||||
| @@ -4,11 +4,11 @@ go 1.18 | ||||
|  | ||||
| require ( | ||||
| 	github.com/gofiber/utils v1.1.0 | ||||
| 	github.com/microsoft/go-mssqldb v0.21.0 | ||||
| 	github.com/microsoft/go-mssqldb v1.3.0 | ||||
| ) | ||||
|  | ||||
| require ( | ||||
| 	github.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9 // indirect | ||||
| 	github.com/golang-sql/sqlexp v0.1.0 // indirect | ||||
| 	golang.org/x/crypto v0.3.0 // indirect | ||||
| 	golang.org/x/crypto v0.9.0 // indirect | ||||
| ) | ||||
|   | ||||
							
								
								
									
										86
									
								
								mssql/go.sum
									
									
									
									
									
								
							
							
						
						
									
										86
									
								
								mssql/go.sum
									
									
									
									
									
								
							| @@ -1,78 +1,94 @@ | ||||
| github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0/go.mod h1:uGG2W01BaETf0Ozp+QxxKJdMBNRWPdstHG0Fmdwn1/U= | ||||
| github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.2/go.mod h1:uGG2W01BaETf0Ozp+QxxKJdMBNRWPdstHG0Fmdwn1/U= | ||||
| github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1/go.mod h1:gLa1CL2RNE4s7M3yopJ/p0iq5DdY6Yv5ZUt9MTRZOQM= | ||||
| github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0/go.mod h1:eWRD7oawr1Mu1sLCawqVc0CUiF43ia3qQMxLscsKQ9w= | ||||
| github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1/go.mod h1:4qFor3D/HDsvBME35Xy9rwW9DecL+M2sNw1ybjPtwA0= | ||||
| github.com/Azure/azure-sdk-for-go/sdk/azcore v1.6.0/go.mod h1:bjGvMhVMb+EEm3VRNQawDMUyMMjo+S5ewNjflkep/0Q= | ||||
| github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.3.0/go.mod h1:OQeznEEkTZ9OrhHJoDD8ZDq51FHgXjqtP9z6bEwBq9U= | ||||
| github.com/Azure/azure-sdk-for-go/sdk/internal v1.3.0/go.mod h1:okt5dMMTOFjX/aovMlrjvvXoPMBVSPzk9185BT0+eZM= | ||||
| github.com/AzureAD/microsoft-authentication-library-for-go v1.0.0/go.mod h1:kgDmCTgBzIEPFElEF+FK0SdjAor06dRq2Go927dnQ6o= | ||||
| github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= | ||||
| github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= | ||||
| github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/yU9ko= | ||||
| github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ= | ||||
| github.com/gofiber/utils v1.1.0 h1:vdEBpn7AzIUJRhe+CiTOJdUcTg4Q9RK+pEa0KPbLdrM= | ||||
| github.com/gofiber/utils v1.1.0/go.mod h1:poZpsnhBykfnY1Mc0KeEa6mSHrS3dV0+oBWyeQmb2e0= | ||||
| github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= | ||||
| github.com/golang-sql/civil v0.0.0-20190719163853-cb61b32ac6fe/go.mod h1:8vg3r2VgvsThLBIFL93Qb5yWzgyZWhEmBwUJWevAkK0= | ||||
| github.com/golang-jwt/jwt/v4 v4.4.3/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= | ||||
| github.com/golang-jwt/jwt/v4 v4.5.0/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= | ||||
| github.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9 h1:au07oEsX2xN0ktxqI+Sida1w446QrXBRJ0nee3SNZlA= | ||||
| github.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9/go.mod h1:8vg3r2VgvsThLBIFL93Qb5yWzgyZWhEmBwUJWevAkK0= | ||||
| github.com/golang-sql/sqlexp v0.1.0 h1:ZCD6MBpcuOVfGVqsEmY5/4FtYiKz6tSyUv9LPEDei6A= | ||||
| github.com/golang-sql/sqlexp v0.1.0/go.mod h1:J4ad9Vo8ZCWQ2GMrC4UCQy1JpCbwU9m3EOqtpKwwwHI= | ||||
| github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= | ||||
| github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= | ||||
| github.com/gorilla/securecookie v1.1.1/go.mod h1:ra0sb63/xPlUeL+yeDciTfxMRAA+MP+HVt/4epWDjd4= | ||||
| github.com/gorilla/sessions v1.2.1/go.mod h1:dk2InVEVJ0sfLlnXv9EAgkf6ecYs/i80K/zI+bUmuGM= | ||||
| github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= | ||||
| github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= | ||||
| github.com/jcmturner/aescts/v2 v2.0.0/go.mod h1:AiaICIRyfYg35RUkr8yESTqvSy7csK90qZ5xfvvsoNs= | ||||
| github.com/jcmturner/dnsutils/v2 v2.0.0/go.mod h1:b0TnjGOvI/n42bZa+hmXL+kFJZsFT7G4t3HTlQ184QM= | ||||
| github.com/jcmturner/gofork v1.0.0/go.mod h1:MK8+TM0La+2rjBD4jE12Kj1pCCxK7d2LK/UM3ncEo0o= | ||||
| github.com/jcmturner/gofork v1.7.6/go.mod h1:1622LH6i/EZqLloHfE7IeZ0uEJwMSUyQ/nDd82IeqRo= | ||||
| github.com/jcmturner/goidentity/v6 v6.0.1/go.mod h1:X1YW3bgtvwAXju7V3LCIMpY0Gbxyjn/mY9zx4tFonSg= | ||||
| github.com/jcmturner/gokrb5/v8 v8.4.2/go.mod h1:sb+Xq/fTY5yktf/VxLsE3wlfPqQjp0aWNYyvBVK62bc= | ||||
| github.com/jcmturner/gokrb5/v8 v8.4.4/go.mod h1:1btQEpgT6k+unzCwX1KdWMEwPPkkgBtP+F6aCACiMrs= | ||||
| github.com/jcmturner/rpc/v2 v2.0.3/go.mod h1:VUJYCIDm3PVOEHw8sgt091/20OJjskO/YJki3ELg/Hc= | ||||
| github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= | ||||
| github.com/microsoft/go-mssqldb v0.21.0 h1:p2rpHIL7TlSv1QrbXJUAcbyRKnIT0C9rRkH2E4OjLn8= | ||||
| github.com/microsoft/go-mssqldb v0.21.0/go.mod h1:+4wZTUnz/SV6nffv+RRRB/ss8jPng5Sho2SmM1l2ts4= | ||||
| github.com/microsoft/go-mssqldb v1.3.0 h1:JcPVl+acL8Z/cQcJc9zP0OkjQ+l20bco/cCDpMbmGJk= | ||||
| github.com/microsoft/go-mssqldb v1.3.0/go.mod h1:lmWsjHD8XX/Txr0f8ZqgbEZSC+BZjmEQy/Ms+rLrvho= | ||||
| github.com/modocache/gover v0.0.0-20171022184752-b58185e213c5/go.mod h1:caMODM3PzxT8aQXRPkAt8xlV/e7d7w8GM5g0fa5F0D8= | ||||
| github.com/montanaflynn/stats v0.6.6/go.mod h1:etXPPgVO6n31NxCd9KQUMvCM+ve0ruNzt6R8Bnaayow= | ||||
| github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4/go.mod h1:N6UoU20jOqggOuDwUaBQpluzLNDqif3kq9z2wpdYEfQ= | ||||
| github.com/montanaflynn/stats v0.7.0/go.mod h1:etXPPgVO6n31NxCd9KQUMvCM+ve0ruNzt6R8Bnaayow= | ||||
| github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8/go.mod h1:HKlIX3XHQyzLZPlr7++PzdhaXEj94dEiJgZDTsxEqUI= | ||||
| github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= | ||||
| github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= | ||||
| github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= | ||||
| github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= | ||||
| github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= | ||||
| github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= | ||||
| github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= | ||||
| github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= | ||||
| github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= | ||||
| github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= | ||||
| github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= | ||||
| golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= | ||||
| golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= | ||||
| golang.org/x/crypto v0.0.0-20201112155050-0c6587e931a9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= | ||||
| golang.org/x/crypto v0.0.0-20220511200225-c6db032c6c88/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= | ||||
| golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= | ||||
| golang.org/x/crypto v0.3.0 h1:a06MkbcxBrEFc0w0QIZWXrH/9cCX6KJyWbBOIwAn+7A= | ||||
| golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= | ||||
| golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= | ||||
| golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= | ||||
| golang.org/x/crypto v0.6.0/go.mod h1:OFC/31mSvZgRz0V1QTNCzfAI1aIRzbiufJtkMIlEp58= | ||||
| golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= | ||||
| golang.org/x/crypto v0.9.0 h1:LF6fAI+IutBocDJ2OT0Q1g8plpYljMZ4+lty+dsqw3g= | ||||
| golang.org/x/crypto v0.9.0/go.mod h1:yrmDGqONDYtNj3tH8X9dzUun2m2lzPa9ngI6/RUPGR0= | ||||
| golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= | ||||
| golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= | ||||
| golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= | ||||
| golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= | ||||
| golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= | ||||
| golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= | ||||
| golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= | ||||
| golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= | ||||
| golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= | ||||
| golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= | ||||
| golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= | ||||
| golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= | ||||
| golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= | ||||
| golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | ||||
| golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | ||||
| golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | ||||
| golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= | ||||
| golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | ||||
| golang.org/x/sys v0.0.0-20210616045830-e2b7044e8c71/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | ||||
| golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | ||||
| golang.org/x/sys v0.0.0-20220224120231-95c6836cb0e7/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | ||||
| golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | ||||
| golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | ||||
| golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | ||||
| golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | ||||
| golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | ||||
| golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= | ||||
| golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= | ||||
| golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= | ||||
| golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= | ||||
| golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= | ||||
| golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= | ||||
| golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= | ||||
| golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= | ||||
| golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= | ||||
| golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= | ||||
| golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= | ||||
| golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= | ||||
| golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= | ||||
| golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= | ||||
| golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= | ||||
| golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= | ||||
| golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= | ||||
| gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= | ||||
| gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce h1:+JknDZhAj8YMt7GC73Ei8pv4MzjDUNPHgQWJdtMAaDU= | ||||
| gopkg.in/natefinch/npipe.v2 v2.0.0-20160621034901-c1b8fa8bdcce/go.mod h1:5AcXVHNjg+BDxry382+8OKon8SEWiKktQR07RKPsv1c= | ||||
| gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= | ||||
| gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= | ||||
| gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= | ||||
| gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= | ||||
| gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= | ||||
| gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= | ||||
| gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= | ||||
|   | ||||
| @@ -1,4 +1,13 @@ | ||||
| # MySQL | ||||
| --- | ||||
| id: mysql | ||||
| title: MySQL | ||||
| --- | ||||
|  | ||||
|  | ||||
| [](https://gofiber.io/discord) | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| A MySQL storage driver using `database/sql` and [go-sql-driver/mysql](https://github.com/go-sql-driver/mysql). | ||||
|  | ||||
|   | ||||
							
								
								
									
										92
									
								
								pebble/README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										92
									
								
								pebble/README.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,92 @@ | ||||
| --- | ||||
| id: pebble | ||||
| title: Pebble | ||||
| --- | ||||
|  | ||||
|  | ||||
| [](https://gofiber.io/discord) | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| A fast key-value DB using [cockroachdb/pebble](https://github.com/cockroachdb/pebble) | ||||
|  | ||||
| ### Table of Contents | ||||
|  | ||||
| - [Signatures](#signatures) | ||||
| - [Installation](#installation) | ||||
| - [Examples](#examples) | ||||
| - [Config](#config) | ||||
| - [Default Config](#default-config) | ||||
|  | ||||
| ### Signatures | ||||
|  | ||||
| ```go | ||||
| func New(config ...Config) Storage | ||||
| func (s *Storage) Get(key string) ([]byte, error) | ||||
| func (s *Storage) Set(key string, val []byte, exp time.Duration) error | ||||
| func (s *Storage) Delete(key string) error | ||||
| func (s *Storage) Reset() error | ||||
| func (s *Storage) Close() error | ||||
| func (s *Storage) Conn() *badger.DB | ||||
| ``` | ||||
|  | ||||
| ### Installation | ||||
|  | ||||
| Pebble is tested on the 2 last [Go versions](https://golang.org/dl/) with support for modules. So make sure to initialize one first if you didn't do that yet: | ||||
| ```bash | ||||
| go mod init github.com/<user>/<repo> | ||||
| ``` | ||||
| Note: This step is only required if you don't have an existing module. | ||||
|  | ||||
| And then install the Pebble implementation: | ||||
|  | ||||
| ```bash | ||||
| go get github.com/gofiber/storage/pebble | ||||
| ``` | ||||
|  | ||||
| ### Examples | ||||
|  | ||||
| Import the storage package. | ||||
|  | ||||
| ```go | ||||
| import "github.com/gofiber/storage/pebble" | ||||
| ``` | ||||
|  | ||||
| You can use the following possibilities to create a storage: | ||||
|  | ||||
| ```go | ||||
| // Initialize default config | ||||
| store := pebble.New() | ||||
|  | ||||
| // Initialize custom config | ||||
| store := pebble.New(pebble.Config{ | ||||
| 	Path:         "db", | ||||
| 	WriteOptions: &pebble.WriteOptions{}, | ||||
| }) | ||||
| ``` | ||||
|  | ||||
| ### Config | ||||
|  | ||||
| ```go | ||||
| type Config struct { | ||||
| 	// Database name | ||||
| 	// | ||||
| 	// Optional. Default is "./db" | ||||
| 	Path string | ||||
|  | ||||
| 	// Pass write options during write operations | ||||
| 	// | ||||
| 	// Optional. Default is nil | ||||
| 	WriteOptions &pebble.WriteOptions{} | ||||
| } | ||||
| ``` | ||||
|  | ||||
| ### Default Config | ||||
|  | ||||
| ```go | ||||
| var ConfigDefault = Config{ | ||||
| 	Path:         "db", | ||||
| 	WriteOptions: &pebble.WriteOptions{}, | ||||
| } | ||||
| ``` | ||||
							
								
								
									
										24
									
								
								pebble/config.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								pebble/config.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,24 @@ | ||||
| package pebble | ||||
|  | ||||
| import "github.com/cockroachdb/pebble" | ||||
|  | ||||
| type Config struct { | ||||
| 	Path         string | ||||
| 	WriteOptions *pebble.WriteOptions | ||||
| } | ||||
|  | ||||
| var ConfigDefault = Config{ | ||||
| 	Path:         "db", | ||||
| 	WriteOptions: &pebble.WriteOptions{}, | ||||
| } | ||||
|  | ||||
| func configDefault(config ...Config) Config { | ||||
| 	if len(config) < 1 { | ||||
| 		return configDefault(config...) | ||||
| 	} | ||||
| 	cfg := config[0] | ||||
| 	if cfg.Path == "" { | ||||
| 		cfg.Path = ConfigDefault.Path | ||||
| 	} | ||||
| 	return cfg | ||||
| } | ||||
							
								
								
									
										33
									
								
								pebble/go.mod
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								pebble/go.mod
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,33 @@ | ||||
| module github.com/gofiber/storage/pebble | ||||
|  | ||||
| go 1.19 | ||||
|  | ||||
| require ( | ||||
| 	github.com/cockroachdb/pebble v0.0.0-20230529170040-f235f568816e | ||||
| 	github.com/gofiber/utils v1.1.0 | ||||
| ) | ||||
|  | ||||
| require ( | ||||
| 	github.com/DataDog/zstd v1.4.5 // indirect | ||||
| 	github.com/beorn7/perks v1.0.1 // indirect | ||||
| 	github.com/cespare/xxhash/v2 v2.2.0 // indirect | ||||
| 	github.com/cockroachdb/errors v1.8.1 // indirect | ||||
| 	github.com/cockroachdb/logtags v0.0.0-20190617123548-eb05cc24525f // indirect | ||||
| 	github.com/cockroachdb/redact v1.0.8 // indirect | ||||
| 	github.com/cockroachdb/sentry-go v0.6.1-cockroachdb.2 // indirect | ||||
| 	github.com/gogo/protobuf v1.3.2 // indirect | ||||
| 	github.com/golang/protobuf v1.5.2 // indirect | ||||
| 	github.com/golang/snappy v0.0.4 // indirect | ||||
| 	github.com/klauspost/compress v1.15.15 // indirect | ||||
| 	github.com/kr/pretty v0.2.1 // indirect | ||||
| 	github.com/kr/text v0.2.0 // indirect | ||||
| 	github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect | ||||
| 	github.com/pkg/errors v0.9.1 // indirect | ||||
| 	github.com/prometheus/client_golang v1.12.0 // indirect | ||||
| 	github.com/prometheus/client_model v0.2.1-0.20210607210712-147c58e9608a // indirect | ||||
| 	github.com/prometheus/common v0.32.1 // indirect | ||||
| 	github.com/prometheus/procfs v0.7.3 // indirect | ||||
| 	golang.org/x/exp v0.0.0-20200513190911-00229845015e // indirect | ||||
| 	golang.org/x/sys v0.3.0 // indirect | ||||
| 	google.golang.org/protobuf v1.27.1 // indirect | ||||
| ) | ||||
							
								
								
									
										658
									
								
								pebble/go.sum
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										658
									
								
								pebble/go.sum
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,658 @@ | ||||
| cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= | ||||
| cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= | ||||
| cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= | ||||
| cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= | ||||
| cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= | ||||
| cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= | ||||
| cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= | ||||
| cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= | ||||
| cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= | ||||
| cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= | ||||
| cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= | ||||
| cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= | ||||
| cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= | ||||
| cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= | ||||
| cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= | ||||
| cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= | ||||
| cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= | ||||
| cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= | ||||
| cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= | ||||
| cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= | ||||
| cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= | ||||
| cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= | ||||
| cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= | ||||
| cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= | ||||
| cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= | ||||
| cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= | ||||
| cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= | ||||
| cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= | ||||
| cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= | ||||
| cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= | ||||
| cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= | ||||
| cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= | ||||
| dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= | ||||
| github.com/AndreasBriese/bbloom v0.0.0-20190306092124-e2d15f34fcf9/go.mod h1:bOvUY6CB00SOBii9/FifXqc0awNKxLFCL/+pkDPuyl8= | ||||
| github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= | ||||
| github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= | ||||
| github.com/CloudyKit/fastprinter v0.0.0-20170127035650-74b38d55f37a/go.mod h1:EFZQ978U7x8IRnstaskI3IysnWY5Ao3QgZUKOXlsAdw= | ||||
| github.com/CloudyKit/jet v2.1.3-0.20180809161101-62edd43e4f88+incompatible/go.mod h1:HPYO+50pSWkPoj9Q/eq0aRGByCL6ScRlUmiEX5Zgm+w= | ||||
| github.com/DataDog/zstd v1.4.5 h1:EndNeuB0l9syBZhut0wns3gV1hL8zX8LIu6ZiVHWLIQ= | ||||
| github.com/DataDog/zstd v1.4.5/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo= | ||||
| github.com/Joker/hpp v1.0.0/go.mod h1:8x5n+M1Hp5hC0g8okX3sR3vFQwynaX/UgSOM9MeBKzY= | ||||
| github.com/Joker/jade v1.0.1-0.20190614124447-d475f43051e7/go.mod h1:6E6s8o2AE4KhCrqr6GRJjdC/gNfTdxkIXvuGZZda2VM= | ||||
| github.com/Shopify/goreferrer v0.0.0-20181106222321-ec9c9a553398/go.mod h1:a1uqRtAwp2Xwc6WNPJEufxJ7fx3npB4UV/JOLmbu5I0= | ||||
| github.com/ajg/form v1.5.1/go.mod h1:uL1WgH+h2mgNtvBq0339dVnzXdBETtL2LeUXaIv25UY= | ||||
| github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= | ||||
| github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= | ||||
| github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= | ||||
| github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= | ||||
| github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= | ||||
| github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= | ||||
| github.com/aymerick/raymond v2.0.3-0.20180322193309-b565731e1464+incompatible/go.mod h1:osfaiScAUVup+UC9Nfq76eWqDhXlp+4UYaA8uhTBO6g= | ||||
| github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= | ||||
| github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= | ||||
| github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= | ||||
| github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= | ||||
| github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= | ||||
| github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= | ||||
| github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= | ||||
| github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44= | ||||
| github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= | ||||
| github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= | ||||
| github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= | ||||
| github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= | ||||
| github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= | ||||
| github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= | ||||
| github.com/cockroachdb/datadriven v1.0.0/go.mod h1:5Ib8Meh+jk1RlHIXej6Pzevx/NLlNvQB9pmSBZErGA4= | ||||
| github.com/cockroachdb/datadriven v1.0.3-0.20230413201302-be42291fc80f h1:otljaYPt5hWxV3MUfO5dFPFiOXg9CyG5/kCfayTqsJ4= | ||||
| github.com/cockroachdb/errors v1.6.1/go.mod h1:tm6FTP5G81vwJ5lC0SizQo374JNCOPrHyXGitRJoDqM= | ||||
| github.com/cockroachdb/errors v1.8.1 h1:A5+txlVZfOqFBDa4mGz2bUWSp0aHElvHX2bKkdbQu+Y= | ||||
| github.com/cockroachdb/errors v1.8.1/go.mod h1:qGwQn6JmZ+oMjuLwjWzUNqblqk0xl4CVV3SQbGwK7Ac= | ||||
| github.com/cockroachdb/logtags v0.0.0-20190617123548-eb05cc24525f h1:o/kfcElHqOiXqcou5a3rIlMc7oJbMQkeLk0VQJ7zgqY= | ||||
| github.com/cockroachdb/logtags v0.0.0-20190617123548-eb05cc24525f/go.mod h1:i/u985jwjWRlyHXQbwatDASoW0RMlZ/3i9yJHE2xLkI= | ||||
| github.com/cockroachdb/pebble v0.0.0-20230529170040-f235f568816e h1:iB7Z/maVDYLJo034mHHO8PJz46bXxmbZQJcpCKLyxpg= | ||||
| github.com/cockroachdb/pebble v0.0.0-20230529170040-f235f568816e/go.mod h1:TkdVsGYRqtULUppt2RbC+YaKtTHnHoWa2apfFrSKABw= | ||||
| github.com/cockroachdb/redact v1.0.8 h1:8QG/764wK+vmEYoOlfobpe12EQcS81ukx/a4hdVMxNw= | ||||
| github.com/cockroachdb/redact v1.0.8/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg= | ||||
| github.com/cockroachdb/sentry-go v0.6.1-cockroachdb.2 h1:IKgmqgMQlVJIZj19CdocBeSfSaiCbEBZGKODaixqtHM= | ||||
| github.com/cockroachdb/sentry-go v0.6.1-cockroachdb.2/go.mod h1:8BT+cPK6xvFOcRlk0R8eg+OTkcqI6baNH4xAkpiYVvQ= | ||||
| github.com/codegangsta/inject v0.0.0-20150114235600-33e0aa1cb7c0/go.mod h1:4Zcjuz89kmFXt9morQgcfYZAYZ5n8WHjt81YYWIwtTM= | ||||
| github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= | ||||
| github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk= | ||||
| github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= | ||||
| github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= | ||||
| github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= | ||||
| github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= | ||||
| github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= | ||||
| github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= | ||||
| github.com/dgraph-io/badger v1.6.0/go.mod h1:zwt7syl517jmP8s94KqSxTlM6IMsdhYy6psNgSztDR4= | ||||
| github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= | ||||
| github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= | ||||
| github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= | ||||
| github.com/eknkc/amber v0.0.0-20171010120322-cdade1c07385/go.mod h1:0vRUJqYpeSZifjYj7uP3BG/gKcuzL9xWVV/Y+cK33KM= | ||||
| github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= | ||||
| github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= | ||||
| github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= | ||||
| github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= | ||||
| github.com/etcd-io/bbolt v1.3.3/go.mod h1:ZF2nL25h33cCyBtcyWeZ2/I3HQOfTP+0PIEvHjkjCrw= | ||||
| github.com/fasthttp-contrib/websocket v0.0.0-20160511215533-1f3b11f56072/go.mod h1:duJ4Jxv5lDcvg4QuQr0oowTf7dz4/CR8NtyCooz9HL8= | ||||
| github.com/fatih/structs v1.1.0/go.mod h1:9NiDSp5zOcgEDl+j00MP/WkGVPOlPRLejGD8Ga6PJ7M= | ||||
| github.com/flosch/pongo2 v0.0.0-20190707114632-bbf5a6c351f4/go.mod h1:T9YF2M40nIgbVgp3rreNmTged+9HrbNTIQf1PsaIiTA= | ||||
| github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= | ||||
| github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= | ||||
| github.com/gavv/httpexpect v2.0.0+incompatible/go.mod h1:x+9tiU1YnrOvnB725RkpoLv1M62hOWzwo5OXotisrKc= | ||||
| github.com/gin-contrib/sse v0.0.0-20190301062529-5545eab6dad3/go.mod h1:VJ0WA2NBN22VlZ2dKZQPAPnyWw5XTlK1KymzLKsr59s= | ||||
| github.com/gin-gonic/gin v1.4.0/go.mod h1:OW2EZn3DO8Ln9oIKOvM++LBO+5UPHJJDH72/q/3rZdM= | ||||
| github.com/go-check/check v0.0.0-20180628173108-788fd7840127/go.mod h1:9ES+weclKsC9YodN5RgxqK/VD9HM9JsCSh7rNhMZE98= | ||||
| github.com/go-errors/errors v1.0.1 h1:LUHzmkK3GUKUrL/1gfBUxAHzcev3apQlezX/+O7ma6w= | ||||
| github.com/go-errors/errors v1.0.1/go.mod h1:f4zRHt4oKfwPJE5k8C9vpYG+aDHdBFUsgrm6/TyX73Q= | ||||
| github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= | ||||
| github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= | ||||
| github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= | ||||
| github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= | ||||
| github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= | ||||
| github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= | ||||
| github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= | ||||
| github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= | ||||
| github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= | ||||
| github.com/go-martini/martini v0.0.0-20170121215854-22fa46961aab/go.mod h1:/P9AEU963A2AYjv4d1V5eVL1CQbEJq6aCNHDDjibzu8= | ||||
| github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= | ||||
| github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee/go.mod h1:L0fX3K22YWvt/FAX9NnzrNzcI4wNYi9Yku4O0LKYflo= | ||||
| github.com/gobwas/pool v0.2.0/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw= | ||||
| github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM= | ||||
| github.com/gofiber/utils v1.1.0 h1:vdEBpn7AzIUJRhe+CiTOJdUcTg4Q9RK+pEa0KPbLdrM= | ||||
| github.com/gofiber/utils v1.1.0/go.mod h1:poZpsnhBykfnY1Mc0KeEa6mSHrS3dV0+oBWyeQmb2e0= | ||||
| github.com/gogo/googleapis v0.0.0-20180223154316-0cd9801be74a/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s= | ||||
| github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= | ||||
| github.com/gogo/protobuf v1.2.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= | ||||
| github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= | ||||
| github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= | ||||
| github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= | ||||
| github.com/gogo/status v1.1.0/go.mod h1:BFv9nrluPLmrS0EmGVvLaPNmRosr9KapBYd5/hpY1WM= | ||||
| github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= | ||||
| github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= | ||||
| github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= | ||||
| github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= | ||||
| github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= | ||||
| github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= | ||||
| github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= | ||||
| github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= | ||||
| github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= | ||||
| github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= | ||||
| github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= | ||||
| github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= | ||||
| github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= | ||||
| github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= | ||||
| github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= | ||||
| github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= | ||||
| github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= | ||||
| github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= | ||||
| github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= | ||||
| github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= | ||||
| github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= | ||||
| github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= | ||||
| github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= | ||||
| github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= | ||||
| github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw= | ||||
| github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= | ||||
| github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= | ||||
| github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= | ||||
| github.com/gomodule/redigo v1.7.1-0.20190724094224-574c33c3df38/go.mod h1:B4C85qUVwatsJoIUNIfCRsp7qO0iAmpGFZ4EELWSbC4= | ||||
| github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= | ||||
| github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= | ||||
| github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= | ||||
| github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= | ||||
| github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= | ||||
| github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= | ||||
| github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= | ||||
| github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= | ||||
| github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= | ||||
| github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= | ||||
| github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= | ||||
| github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ= | ||||
| github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= | ||||
| github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= | ||||
| github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= | ||||
| github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= | ||||
| github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= | ||||
| github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= | ||||
| github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= | ||||
| github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= | ||||
| github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= | ||||
| github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= | ||||
| github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= | ||||
| github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= | ||||
| github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= | ||||
| github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= | ||||
| github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= | ||||
| github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= | ||||
| github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= | ||||
| github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= | ||||
| github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= | ||||
| github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= | ||||
| github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= | ||||
| github.com/hydrogen18/memlistener v0.0.0-20141126152155-54553eb933fb/go.mod h1:qEIFzExnS6016fRpRfxrExeVn2gbClQA99gQhnIcdhE= | ||||
| github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= | ||||
| github.com/imkira/go-interpol v1.1.0/go.mod h1:z0h2/2T3XF8kyEPpRgJ3kmNv+C43p+I/CoI+jC3w2iA= | ||||
| github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= | ||||
| github.com/iris-contrib/blackfriday v2.0.0+incompatible/go.mod h1:UzZ2bDEoaSGPbkg6SAB4att1aAwTmVIx/5gCVqeyUdI= | ||||
| github.com/iris-contrib/go.uuid v2.0.0+incompatible/go.mod h1:iz2lgM/1UnEf1kP0L/+fafWORmlnuysV2EMP8MW+qe0= | ||||
| github.com/iris-contrib/i18n v0.0.0-20171121225848-987a633949d0/go.mod h1:pMCz62A0xJL6I+umB2YTlFRwWXaDFA0jy+5HzGiJjqI= | ||||
| github.com/iris-contrib/schema v0.0.1/go.mod h1:urYA3uvUNG1TIIjOSCzHr9/LmbQo8LrOcOqfqxa4hXw= | ||||
| github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= | ||||
| github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= | ||||
| github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= | ||||
| github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= | ||||
| github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= | ||||
| github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= | ||||
| github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= | ||||
| github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= | ||||
| github.com/juju/errors v0.0.0-20181118221551-089d3ea4e4d5/go.mod h1:W54LbzXuIE0boCoNJfwqpmkKJ1O4TCTZMetAt6jGk7Q= | ||||
| github.com/juju/loggo v0.0.0-20180524022052-584905176618/go.mod h1:vgyd7OREkbtVEN/8IXZe5Ooef3LQePvuBm9UWj6ZL8U= | ||||
| github.com/juju/testing v0.0.0-20180920084828-472a3e8b2073/go.mod h1:63prj8cnj0tU0S9OHjGJn+b1h0ZghCndfnbQolrYTwA= | ||||
| github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= | ||||
| github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= | ||||
| github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88/go.mod h1:3w7q1U84EfirKl04SVQ/s7nPm1ZPhiXd34z40TNz36k= | ||||
| github.com/kataras/golog v0.0.9/go.mod h1:12HJgwBIZFNGL0EJnMRhmvGA0PQGx8VFwrZtM4CqbAk= | ||||
| github.com/kataras/iris/v12 v12.0.1/go.mod h1:udK4vLQKkdDqMGJJVd/msuMtN6hpYJhg/lSzuxjhO+U= | ||||
| github.com/kataras/neffos v0.0.10/go.mod h1:ZYmJC07hQPW67eKuzlfY7SO3bC0mw83A3j6im82hfqw= | ||||
| github.com/kataras/pio v0.0.0-20190103105442-ea782b38602d/go.mod h1:NV88laa9UiiDuX9AhMbDPkGYSPugBOV6yTZB1l2K9Z0= | ||||
| github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= | ||||
| github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= | ||||
| github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= | ||||
| github.com/klauspost/compress v1.8.2/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= | ||||
| github.com/klauspost/compress v1.9.0/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= | ||||
| github.com/klauspost/compress v1.15.15 h1:EF27CXIuDsYJ6mmvtBRlEuB2UVOqHG1tAXgZ7yIO+lw= | ||||
| github.com/klauspost/compress v1.15.15/go.mod h1:ZcK2JAFqKOpnBlxcLsJzYfrS9X1akm9fHZNnD9+Vo/4= | ||||
| github.com/klauspost/cpuid v1.2.1/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= | ||||
| github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= | ||||
| github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= | ||||
| github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= | ||||
| github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= | ||||
| github.com/kr/pretty v0.2.1 h1:Fmg33tUaq4/8ym9TJN1x7sLJnHVwhP33CNkpYV/7rwI= | ||||
| github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= | ||||
| github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= | ||||
| github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= | ||||
| github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= | ||||
| github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= | ||||
| github.com/labstack/echo/v4 v4.1.11/go.mod h1:i541M3Fj6f76NZtHSj7TXnyM8n2gaodfvfxNnFqi74g= | ||||
| github.com/labstack/gommon v0.3.0/go.mod h1:MULnywXg0yavhxWKc+lOruYdAhDwPK9wf0OL7NoOu+k= | ||||
| github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= | ||||
| github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= | ||||
| github.com/mattn/go-isatty v0.0.7/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= | ||||
| github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= | ||||
| github.com/mattn/go-isatty v0.0.9/go.mod h1:YNRxwqDuOph6SZLI9vUUz6OYw3QyUt7WiY2yME+cCiQ= | ||||
| github.com/mattn/goveralls v0.0.2/go.mod h1:8d1ZMHsd7fW6IRPKQh46F2WRpyib5/X4FOpevwGNQEw= | ||||
| github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= | ||||
| github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 h1:I0XW9+e1XWDxdcEniV4rQAIOPUGDq67JSCiRCgGCZLI= | ||||
| github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4= | ||||
| github.com/mediocregopher/mediocre-go-lib v0.0.0-20181029021733-cb65787f37ed/go.mod h1:dSsfyI2zABAdhcbvkXqgxOxrCsbYeHCPgrZkku60dSg= | ||||
| github.com/mediocregopher/radix/v3 v3.3.0/go.mod h1:EmfVyvspXz1uZEyPBMyGK+kjWiKQGvsUt6O3Pj+LDCQ= | ||||
| github.com/microcosm-cc/bluemonday v1.0.2/go.mod h1:iVP4YcDBq+n/5fb23BhYFvIMq/leAFZyRl6bYmGDlGc= | ||||
| github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= | ||||
| github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= | ||||
| github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= | ||||
| github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= | ||||
| github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= | ||||
| github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= | ||||
| github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= | ||||
| github.com/moul/http2curl v1.0.0/go.mod h1:8UbvGypXm98wA/IqH45anm5Y2Z6ep6O31QGOAZ3H0fQ= | ||||
| github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= | ||||
| github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= | ||||
| github.com/nats-io/nats.go v1.8.1/go.mod h1:BrFz9vVn0fU3AcH9Vn4Kd7W0NpJ651tD5omQ3M8LwxM= | ||||
| github.com/nats-io/nkeys v0.0.2/go.mod h1:dab7URMsZm6Z/jp9Z5UGa87Uutgc2mVpXLC4B7TDb/4= | ||||
| github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= | ||||
| github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= | ||||
| github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= | ||||
| github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= | ||||
| github.com/onsi/ginkgo v1.13.0/go.mod h1:+REjRxOmWfHCjfv9TTWB1jD1Frx4XydAD3zm1lskyM0= | ||||
| github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= | ||||
| github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= | ||||
| github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= | ||||
| github.com/pingcap/errors v0.11.4 h1:lFuQV/oaUMGcD2tqt+01ROSmJs75VG1ToEOkZIZ4nE4= | ||||
| github.com/pingcap/errors v0.11.4/go.mod h1:Oi8TUi2kEtXXLMJk9l1cGmz20kV3TaQ0usTwv5KuLY8= | ||||
| github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= | ||||
| github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= | ||||
| github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= | ||||
| github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= | ||||
| github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= | ||||
| github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= | ||||
| github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= | ||||
| github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= | ||||
| github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= | ||||
| github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0= | ||||
| github.com/prometheus/client_golang v1.12.0 h1:C+UIj/QWtmqY13Arb8kwMt5j34/0Z2iKamrJ+ryC0Gg= | ||||
| github.com/prometheus/client_golang v1.12.0/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY= | ||||
| github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= | ||||
| github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= | ||||
| github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= | ||||
| github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= | ||||
| github.com/prometheus/client_model v0.2.1-0.20210607210712-147c58e9608a h1:CmF68hwI0XsOQ5UwlBopMi2Ow4Pbg32akc4KIVCOm+Y= | ||||
| github.com/prometheus/client_model v0.2.1-0.20210607210712-147c58e9608a/go.mod h1:LDGWKZIo7rky3hgvBe+caln+Dr3dPggB5dvjtD7w9+w= | ||||
| github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= | ||||
| github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= | ||||
| github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc= | ||||
| github.com/prometheus/common v0.32.1 h1:hWIdL3N2HoUx3B8j3YN9mWor0qhY/NlEKZEaXxuIRh4= | ||||
| github.com/prometheus/common v0.32.1/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls= | ||||
| github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= | ||||
| github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= | ||||
| github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= | ||||
| github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= | ||||
| github.com/prometheus/procfs v0.7.3 h1:4jVXhlkAyzOScmCkXBTOLRLTz8EeU+eyjrwB/EPq0VU= | ||||
| github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA= | ||||
| github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= | ||||
| github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= | ||||
| github.com/ryanuber/columnize v2.1.0+incompatible/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= | ||||
| github.com/sclevine/agouti v3.0.0+incompatible/go.mod h1:b4WX9W9L1sfQKXeJf1mUTLZKJ48R1S7H23Ji7oFO5Bw= | ||||
| github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= | ||||
| github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= | ||||
| github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= | ||||
| github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= | ||||
| github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= | ||||
| github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= | ||||
| github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= | ||||
| github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= | ||||
| github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= | ||||
| github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= | ||||
| github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= | ||||
| github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= | ||||
| github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= | ||||
| github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= | ||||
| github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= | ||||
| github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= | ||||
| github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= | ||||
| github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= | ||||
| github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= | ||||
| github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc= | ||||
| github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= | ||||
| github.com/urfave/negroni v1.0.0/go.mod h1:Meg73S6kFm/4PpbYdq35yYWoCZ9mS/YSx+lKnmiohz4= | ||||
| github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= | ||||
| github.com/valyala/fasthttp v1.6.0/go.mod h1:FstJa9V+Pj9vQ7OJie2qMHdwemEDaDiSdBnvPM1Su9w= | ||||
| github.com/valyala/fasttemplate v1.0.1/go.mod h1:UQGH1tvbgY+Nz5t2n7tXsz52dQxojPUpymEIMZ47gx8= | ||||
| github.com/valyala/tcplisten v0.0.0-20161114210144-ceec8f93295a/go.mod h1:v3UYOV9WzVtRmSR+PDvWpU/qWl4Wa5LApYYX4ZtKbio= | ||||
| github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= | ||||
| github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ= | ||||
| github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y= | ||||
| github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= | ||||
| github.com/yalp/jsonpath v0.0.0-20180802001716-5cc68e5049a0/go.mod h1:/LWChgwKmvncFJFHJ7Gvn9wZArjbV5/FppcK2fKk/tI= | ||||
| github.com/yudai/gojsondiff v1.0.0/go.mod h1:AY32+k2cwILAkW1fbgxQ5mUmMiZFgLIV+FBNExI05xg= | ||||
| github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82/go.mod h1:lgjkn3NuSvDfVJdfcVVdX+jpBxNmX4rDAzaS45IcYoM= | ||||
| github.com/yudai/pp v2.0.1+incompatible/go.mod h1:PuxR/8QJ7cyCkFp/aUDS+JY727OFEZkTdatxwunjIkc= | ||||
| github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= | ||||
| github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= | ||||
| github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= | ||||
| github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= | ||||
| go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= | ||||
| go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= | ||||
| go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= | ||||
| go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= | ||||
| go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= | ||||
| golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= | ||||
| golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= | ||||
| golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= | ||||
| golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= | ||||
| golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= | ||||
| golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= | ||||
| golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= | ||||
| golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= | ||||
| golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= | ||||
| golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= | ||||
| golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= | ||||
| golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= | ||||
| golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= | ||||
| golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= | ||||
| golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= | ||||
| golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= | ||||
| golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= | ||||
| golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= | ||||
| golang.org/x/exp v0.0.0-20200513190911-00229845015e h1:rMqLP+9XLy+LdbCXHjJHAmTfXCr93W7oruWA6Hq1Alc= | ||||
| golang.org/x/exp v0.0.0-20200513190911-00229845015e/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw= | ||||
| golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= | ||||
| golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= | ||||
| golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= | ||||
| golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= | ||||
| golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= | ||||
| golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= | ||||
| golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= | ||||
| golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= | ||||
| golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= | ||||
| golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= | ||||
| golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= | ||||
| golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= | ||||
| golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= | ||||
| golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= | ||||
| golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= | ||||
| golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= | ||||
| golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= | ||||
| golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= | ||||
| golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= | ||||
| golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= | ||||
| golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= | ||||
| golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= | ||||
| golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= | ||||
| golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= | ||||
| golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= | ||||
| golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= | ||||
| golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= | ||||
| golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= | ||||
| golang.org/x/net v0.0.0-20190327091125-710a502c58a2/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= | ||||
| golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= | ||||
| golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= | ||||
| golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= | ||||
| golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= | ||||
| golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= | ||||
| golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= | ||||
| golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= | ||||
| golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= | ||||
| golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= | ||||
| golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= | ||||
| golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= | ||||
| golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= | ||||
| golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= | ||||
| golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= | ||||
| golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= | ||||
| golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= | ||||
| golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= | ||||
| golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= | ||||
| golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= | ||||
| golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= | ||||
| golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= | ||||
| golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= | ||||
| golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= | ||||
| golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= | ||||
| golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= | ||||
| golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= | ||||
| golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= | ||||
| golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= | ||||
| golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= | ||||
| golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= | ||||
| golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= | ||||
| golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= | ||||
| golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | ||||
| golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | ||||
| golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | ||||
| golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | ||||
| golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | ||||
| golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | ||||
| golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | ||||
| golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | ||||
| golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | ||||
| golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | ||||
| golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4 h1:uVc8UZUe6tr40fFVnUP5Oj+veunVezqYl9z7DYw9xzw= | ||||
| golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= | ||||
| golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= | ||||
| golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= | ||||
| golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= | ||||
| golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= | ||||
| golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= | ||||
| golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= | ||||
| golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20200519105757-fe76b779f299/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | ||||
| golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | ||||
| golang.org/x/sys v0.3.0 h1:w8ZOecv6NaNa/zC8944JTU3vz4u6Lagfk4RPQxv92NQ= | ||||
| golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= | ||||
| golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= | ||||
| golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= | ||||
| golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= | ||||
| golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= | ||||
| golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= | ||||
| golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= | ||||
| golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= | ||||
| golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= | ||||
| golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= | ||||
| golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= | ||||
| golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= | ||||
| golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= | ||||
| golang.org/x/tools v0.0.0-20181221001348-537d06c36207/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= | ||||
| golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= | ||||
| golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= | ||||
| golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= | ||||
| golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= | ||||
| golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= | ||||
| golang.org/x/tools v0.0.0-20190327201419-c70d86f8b7cf/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= | ||||
| golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= | ||||
| golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= | ||||
| golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= | ||||
| golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= | ||||
| golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= | ||||
| golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= | ||||
| golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= | ||||
| golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= | ||||
| golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= | ||||
| golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= | ||||
| golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= | ||||
| golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= | ||||
| golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= | ||||
| golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= | ||||
| golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= | ||||
| golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= | ||||
| golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= | ||||
| golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= | ||||
| golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= | ||||
| golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= | ||||
| golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= | ||||
| golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= | ||||
| golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= | ||||
| golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= | ||||
| golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= | ||||
| golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= | ||||
| golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= | ||||
| golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= | ||||
| golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= | ||||
| golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= | ||||
| golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= | ||||
| golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= | ||||
| golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= | ||||
| golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= | ||||
| golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= | ||||
| golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= | ||||
| golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= | ||||
| golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= | ||||
| golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= | ||||
| golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= | ||||
| golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= | ||||
| golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= | ||||
| google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= | ||||
| google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= | ||||
| google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= | ||||
| google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= | ||||
| google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= | ||||
| google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= | ||||
| google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= | ||||
| google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= | ||||
| google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= | ||||
| google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= | ||||
| google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= | ||||
| google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= | ||||
| google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= | ||||
| google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= | ||||
| google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= | ||||
| google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= | ||||
| google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= | ||||
| google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= | ||||
| google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= | ||||
| google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= | ||||
| google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= | ||||
| google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= | ||||
| google.golang.org/genproto v0.0.0-20180518175338-11a468237815/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= | ||||
| google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= | ||||
| google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= | ||||
| google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= | ||||
| google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= | ||||
| google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= | ||||
| google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= | ||||
| google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= | ||||
| google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= | ||||
| google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= | ||||
| google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= | ||||
| google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= | ||||
| google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= | ||||
| google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= | ||||
| google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= | ||||
| google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= | ||||
| google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= | ||||
| google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= | ||||
| google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= | ||||
| google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= | ||||
| google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= | ||||
| google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= | ||||
| google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= | ||||
| google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= | ||||
| google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= | ||||
| google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= | ||||
| google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= | ||||
| google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= | ||||
| google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= | ||||
| google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= | ||||
| google.golang.org/grpc v1.12.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw= | ||||
| google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= | ||||
| google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= | ||||
| google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= | ||||
| google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= | ||||
| google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= | ||||
| google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= | ||||
| google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= | ||||
| google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= | ||||
| google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= | ||||
| google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= | ||||
| google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= | ||||
| google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= | ||||
| google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= | ||||
| google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= | ||||
| google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= | ||||
| google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= | ||||
| google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= | ||||
| google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= | ||||
| google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= | ||||
| google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= | ||||
| google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= | ||||
| google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= | ||||
| google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= | ||||
| google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= | ||||
| google.golang.org/protobuf v1.27.1 h1:SnqbnDw1V7RiZcXPx5MEeqPv2s79L9i7BJUlG/+RurQ= | ||||
| google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= | ||||
| gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= | ||||
| gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= | ||||
| gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= | ||||
| gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= | ||||
| gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= | ||||
| gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= | ||||
| gopkg.in/go-playground/assert.v1 v1.2.1/go.mod h1:9RXL0bg/zibRAgZUYszZSwO/z8Y/a8bDuhia5mkpMnE= | ||||
| gopkg.in/go-playground/validator.v8 v8.18.2/go.mod h1:RX2a/7Ha8BgOhfk7j780h4/u/RRjR0eouCJSH80/M2Y= | ||||
| gopkg.in/mgo.v2 v2.0.0-20180705113604-9856a29383ce/go.mod h1:yeKp02qBN3iKW1OzL3MGk2IdtZzaj7SFntXj72NppTA= | ||||
| gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= | ||||
| gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= | ||||
| gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= | ||||
| gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= | ||||
| gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= | ||||
| gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= | ||||
| gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= | ||||
| gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= | ||||
| honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= | ||||
| honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= | ||||
| honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= | ||||
| honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= | ||||
| honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= | ||||
| honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= | ||||
| honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= | ||||
| rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= | ||||
| rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= | ||||
| rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= | ||||
							
								
								
									
										142
									
								
								pebble/pebble.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										142
									
								
								pebble/pebble.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,142 @@ | ||||
| package pebble | ||||
|  | ||||
| import ( | ||||
| 	"encoding/json" | ||||
| 	"errors" | ||||
| 	"log" | ||||
| 	"os" | ||||
| 	"time" | ||||
|  | ||||
| 	"github.com/cockroachdb/pebble" | ||||
| ) | ||||
|  | ||||
| type Storage struct { | ||||
| 	db           *pebble.DB | ||||
| 	writeOptions *pebble.WriteOptions | ||||
| } | ||||
|  | ||||
| type CacheType struct { | ||||
| 	Data    []byte `json:"data"` | ||||
| 	Created int64  `json:"created"` | ||||
| 	Expires int64  `json:"expires"` | ||||
| } | ||||
|  | ||||
| func New(config ...Config) *Storage { | ||||
| 	cfg := configDefault(config...) | ||||
|  | ||||
| 	if !isValid(cfg.Path) { | ||||
| 		panic(errors.New("invalid filepath")) | ||||
| 	} | ||||
|  | ||||
| 	db, err := pebble.Open(cfg.Path, &pebble.Options{}) | ||||
| 	if err != nil { | ||||
| 		log.Fatal(err) | ||||
| 	} | ||||
|  | ||||
| 	return &Storage{ | ||||
| 		db:           db, | ||||
| 		writeOptions: cfg.WriteOptions, | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // // Implement the logic to retrieve the value for the given key from the storage provider | ||||
| // // Return nil, nil if the key does not exist | ||||
| func (s *Storage) Get(key string) ([]byte, error) { | ||||
| 	if len(key) <= 0 { | ||||
| 		return nil, nil | ||||
| 	} | ||||
| 	data, closer, err := s.db.Get([]byte(key)) | ||||
|  | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
|  | ||||
| 	if data == nil { | ||||
| 		return nil, nil | ||||
| 	} | ||||
|  | ||||
| 	if err := closer.Close(); err != nil { | ||||
| 		log.Fatal(err) | ||||
| 	} | ||||
|  | ||||
| 	var cache CacheType | ||||
| 	err = json.Unmarshal(data, &cache) | ||||
|  | ||||
| 	if err != nil { | ||||
| 		return nil, nil | ||||
| 	} | ||||
|  | ||||
| 	secs := time.Now().Unix() | ||||
|  | ||||
| 	if cache.Expires > 0 && cache.Expires <= secs { | ||||
| 		err = s.db.Delete([]byte(key), nil) | ||||
| 		return nil, err | ||||
| 	} | ||||
| 	return cache.Data, nil | ||||
| } | ||||
|  | ||||
| // // Implement the logic to store the given value for the given key in the storage provider | ||||
| // // Use the provided expiration value (0 means no expiration) | ||||
| // // Ignore empty key or value without returning an error | ||||
| func (s *Storage) Set(key string, val []byte, exp time.Duration) error { | ||||
| 	if len(key) <= 0 || len(val) <= 0 { | ||||
| 		return nil | ||||
| 	} | ||||
|  | ||||
| 	cache := CacheType{Data: []byte(val), Created: time.Now().Unix(), Expires: 0} | ||||
|  | ||||
| 	if exp > 0 { | ||||
| 		cache.Expires = cache.Created + int64(exp.Seconds()) | ||||
| 	} | ||||
|  | ||||
| 	jsonString, err := json.Marshal(cache) | ||||
| 	if err != nil { | ||||
| 		return err | ||||
| 	} | ||||
| 	return s.db.Set([]byte(key), jsonString, s.writeOptions) | ||||
| } | ||||
|  | ||||
| // // Implement the logic to delete the value for the given key from the storage provider | ||||
| // // Return no error if the key does not exist in the storage | ||||
| func (s *Storage) Delete(key string) error { | ||||
| 	if len(key) <= 0 { | ||||
| 		return nil | ||||
| 	} | ||||
| 	return s.db.Delete([]byte(key), s.writeOptions) | ||||
| } | ||||
|  | ||||
| func (s *Storage) Reset() error { | ||||
| 	return s.db.Flush() | ||||
| } | ||||
|  | ||||
| func (s *Storage) Close() error { | ||||
| 	return s.db.Close() | ||||
| } | ||||
|  | ||||
| // // Return database client | ||||
| func (s *Storage) Conn() *pebble.DB { | ||||
| 	return s.db | ||||
| } | ||||
|  | ||||
| func isValid(fp string) bool { | ||||
| 	// Check if file already exists | ||||
| 	if _, err := os.Stat(fp); err == nil { | ||||
| 		return true | ||||
| 	} | ||||
|  | ||||
| 	// Attempt to create it | ||||
| 	var d []byte | ||||
| 	err := os.WriteFile(fp, d, 0600) | ||||
|  | ||||
| 	if err != nil { | ||||
| 		return false | ||||
| 	} | ||||
|  | ||||
| 	err = os.Remove(fp) // And delete it | ||||
|  | ||||
| 	if err != nil { | ||||
| 		return false | ||||
| 	} | ||||
|  | ||||
| 	return true | ||||
| } | ||||
							
								
								
									
										109
									
								
								pebble/pebble_test.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										109
									
								
								pebble/pebble_test.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,109 @@ | ||||
| package pebble | ||||
|  | ||||
| import ( | ||||
| 	"testing" | ||||
| 	"time" | ||||
|  | ||||
| 	"github.com/gofiber/utils" | ||||
| ) | ||||
|  | ||||
| var testStore = New(Config{ | ||||
| 	"test.db", | ||||
| 	nil, | ||||
| }) | ||||
|  | ||||
| func Test_Pebble_Set(t *testing.T) { | ||||
| 	var ( | ||||
| 		key = "john" | ||||
| 		val = []byte("doe") | ||||
| 	) | ||||
|  | ||||
| 	err := testStore.Set(key, val, 0) | ||||
| 	utils.AssertEqual(t, nil, err) | ||||
| } | ||||
|  | ||||
| func Test_Pebble_Set_Override(t *testing.T) { | ||||
| 	var ( | ||||
| 		key = "john" | ||||
| 		val = []byte("doe") | ||||
| 	) | ||||
|  | ||||
| 	err := testStore.Set(key, val, 0) | ||||
| 	utils.AssertEqual(t, nil, err) | ||||
|  | ||||
| 	err = testStore.Set(key, val, 0) | ||||
| 	utils.AssertEqual(t, nil, err) | ||||
| } | ||||
|  | ||||
| func Test_Pebble_Get(t *testing.T) { | ||||
| 	var ( | ||||
| 		key = "john" | ||||
| 		val = []byte("doe") | ||||
| 	) | ||||
|  | ||||
| 	err := testStore.Set(key, val, 0) | ||||
| 	utils.AssertEqual(t, nil, err) | ||||
|  | ||||
| 	result, err := testStore.Get(key) | ||||
| 	utils.AssertEqual(t, nil, err) | ||||
| 	utils.AssertEqual(t, val, result) | ||||
| } | ||||
|  | ||||
| func Test_Pebble_Set_Expiration(t *testing.T) { | ||||
| 	var ( | ||||
| 		key = "john" | ||||
| 		val = []byte("doe") | ||||
| 		exp = 1 * time.Second | ||||
| 	) | ||||
|  | ||||
| 	err := testStore.Set(key, val, exp) | ||||
| 	utils.AssertEqual(t, nil, err) | ||||
|  | ||||
| 	time.Sleep(1100 * time.Millisecond) | ||||
| } | ||||
|  | ||||
| func Test_Pebble_Delete(t *testing.T) { | ||||
| 	var ( | ||||
| 		key = "john" | ||||
| 		val = []byte("doe") | ||||
| 	) | ||||
|  | ||||
| 	err := testStore.Set(key, val, 20) | ||||
| 	utils.AssertEqual(t, nil, err) | ||||
|  | ||||
| 	err = testStore.Delete(key) | ||||
| 	utils.AssertEqual(t, nil, err) | ||||
|  | ||||
| 	result, err := testStore.Get(key) | ||||
| 	utils.AssertEqual(t, "pebble: not found", err.Error()) | ||||
| 	utils.AssertEqual(t, true, len(result) == 0) | ||||
| } | ||||
|  | ||||
| func Test_Pebble_Reset(t *testing.T) { | ||||
| 	var ( | ||||
| 		val = []byte("doe") | ||||
| 	) | ||||
|  | ||||
| 	err := testStore.Set("john1", val, 0) | ||||
| 	utils.AssertEqual(t, nil, err) | ||||
|  | ||||
| 	err = testStore.Set("john2", val, 0) | ||||
| 	utils.AssertEqual(t, nil, err) | ||||
|  | ||||
| 	err = testStore.Reset() | ||||
| 	utils.AssertEqual(t, nil, err) | ||||
|  | ||||
| 	_, err = testStore.Get("john1") | ||||
| 	utils.AssertEqual(t, nil, err) | ||||
|  | ||||
| 	_, err = testStore.Get("john2") | ||||
| 	utils.AssertEqual(t, nil, err) | ||||
| } | ||||
|  | ||||
| func Test_Pebble_Close(t *testing.T) { | ||||
| 	utils.AssertEqual(t, nil, testStore.Close()) | ||||
| } | ||||
|  | ||||
| func Test_Pebble_Conn(t *testing.T) { | ||||
| 	utils.AssertEqual(t, true, testStore.Conn() != nil) | ||||
| } | ||||
| @@ -1,4 +1,13 @@ | ||||
| # Postgres | ||||
| --- | ||||
| id: postgres | ||||
| title: Postgres | ||||
| --- | ||||
|  | ||||
|  | ||||
| [](https://gofiber.io/discord) | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| A Postgres storage driver using [jackc/pgx](https://github.com/jackc/pgx). | ||||
|  | ||||
|   | ||||
| @@ -4,14 +4,14 @@ go 1.19 | ||||
|  | ||||
| require ( | ||||
| 	github.com/gofiber/utils v1.1.0 | ||||
| 	github.com/jackc/pgx/v5 v5.3.1 | ||||
| 	github.com/jackc/pgx/v5 v5.4.1 | ||||
| ) | ||||
|  | ||||
| require ( | ||||
| 	github.com/jackc/pgpassfile v1.0.0 // indirect | ||||
| 	github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a // indirect | ||||
| 	github.com/jackc/puddle/v2 v2.2.0 // indirect | ||||
| 	golang.org/x/crypto v0.7.0 // indirect | ||||
| 	golang.org/x/crypto v0.9.0 // indirect | ||||
| 	golang.org/x/sync v0.1.0 // indirect | ||||
| 	golang.org/x/text v0.8.0 // indirect | ||||
| 	golang.org/x/text v0.9.0 // indirect | ||||
| ) | ||||
|   | ||||
| @@ -6,8 +6,8 @@ github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsI | ||||
| github.com/jackc/pgpassfile v1.0.0/go.mod h1:CEx0iS5ambNFdcRtxPj5JhEz+xB6uRky5eyVu/W2HEg= | ||||
| github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a h1:bbPeKD0xmW/Y25WS6cokEszi5g+S0QxI/d45PkRi7Nk= | ||||
| github.com/jackc/pgservicefile v0.0.0-20221227161230-091c0ba34f0a/go.mod h1:5TJZWKEWniPve33vlWYSoGYefn3gLQRzjfDlhSJ9ZKM= | ||||
| github.com/jackc/pgx/v5 v5.3.1 h1:Fcr8QJ1ZeLi5zsPZqQeUZhNhxfkkKBOgJuYkJHoBOtU= | ||||
| github.com/jackc/pgx/v5 v5.3.1/go.mod h1:t3JDKnCBlYIc0ewLF0Q7B8MXmoIaBOZj/ic7iHozM/8= | ||||
| github.com/jackc/pgx/v5 v5.4.1 h1:oKfB/FhuVtit1bBM3zNRRsZ925ZkMN3HXL+LgLUM9lE= | ||||
| github.com/jackc/pgx/v5 v5.4.1/go.mod h1:q6iHT8uDNXWiFNOlRqJzBTaSH3+2xCXkokxHZC5qWFY= | ||||
| github.com/jackc/puddle/v2 v2.2.0 h1:RdcDk92EJBuBS55nQMMYFXTxwstHug4jkhT5pq8VxPk= | ||||
| github.com/jackc/puddle/v2 v2.2.0/go.mod h1:vriiEXHvEE654aYKXXjOvZM39qJ0q+azkZFrfEOc3H4= | ||||
| github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= | ||||
| @@ -16,12 +16,12 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+ | ||||
| github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= | ||||
| github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= | ||||
| github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk= | ||||
| golang.org/x/crypto v0.7.0 h1:AvwMYaRytfdeVt3u6mLaxYtErKYjxA2OXjJ1HHq6t3A= | ||||
| golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= | ||||
| golang.org/x/crypto v0.9.0 h1:LF6fAI+IutBocDJ2OT0Q1g8plpYljMZ4+lty+dsqw3g= | ||||
| golang.org/x/crypto v0.9.0/go.mod h1:yrmDGqONDYtNj3tH8X9dzUun2m2lzPa9ngI6/RUPGR0= | ||||
| golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o= | ||||
| golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | ||||
| golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68= | ||||
| golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= | ||||
| golang.org/x/text v0.9.0 h1:2sjJmO8cDvYveuX97RDLsxlyUxLl+GHoLxBiRdHllBE= | ||||
| golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= | ||||
| gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= | ||||
| gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= | ||||
| gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= | ||||
|   | ||||
| @@ -1,4 +1,13 @@ | ||||
| # Redis | ||||
| --- | ||||
| id: redis | ||||
| title: Redis | ||||
| --- | ||||
|  | ||||
|  | ||||
| [](https://gofiber.io/discord) | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| A Redis storage driver using [go-redis/redis](https://github.com/go-redis/redis). | ||||
|  | ||||
| @@ -35,7 +44,7 @@ Import the storage package. | ||||
| import "github.com/gofiber/storage/redis/v2" | ||||
| ``` | ||||
|  | ||||
| You can use the following possibilities to create a storage: | ||||
| You can use the one of the following options to create a Redis Storage: | ||||
| ```go | ||||
| // Initialize default config | ||||
| store := redis.New() | ||||
| @@ -63,7 +72,24 @@ store := redis.New(redis.Config{ | ||||
| 	Addrs:            []string{":6379", ":6380"}, | ||||
| }) | ||||
|  | ||||
| // or just the url with all information | ||||
| // Create a client with support for TLS | ||||
| cer, err := tls.LoadX509KeyPair("./client.crt", "./client.key") | ||||
| if err != nil { | ||||
| 	log.Println(err) | ||||
| 	return | ||||
| } | ||||
| tlsCfg := &tls.Config{ | ||||
| 	MinVersion:               tls.VersionTLS12, | ||||
| 	InsecureSkipVerify:       true, | ||||
| 	Certificates:             []tls.Certificate{cer}, | ||||
| } | ||||
| store = redis.New(redis.Config{ | ||||
|     URL:     	"redis://<user>:<pass>@127.0.0.1:6379/<db>", | ||||
| 	TLSConfig: 	tlsCfg, | ||||
|     Reset:    	false, | ||||
| }) | ||||
|  | ||||
| // Create a client with a Redis URL with all information. | ||||
| store = redis.New(redis.Config{ | ||||
|     URL:     "redis://<user>:<pass>@127.0.0.1:6379/<db>", | ||||
|     Reset:    false, | ||||
|   | ||||
| @@ -4,7 +4,7 @@ go 1.18 | ||||
|  | ||||
| require ( | ||||
| 	github.com/gofiber/utils v1.1.0 | ||||
| 	github.com/redis/go-redis/v9 v9.0.4 | ||||
| 	github.com/redis/go-redis/v9 v9.0.5 | ||||
| ) | ||||
|  | ||||
| require ( | ||||
|   | ||||
| @@ -6,5 +6,5 @@ github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f h1:lO4WD4F/r | ||||
| github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f/go.mod h1:cuUVRXasLTGF7a8hSLbxyZXjz+1KgoB3wDUb6vlszIc= | ||||
| github.com/gofiber/utils v1.1.0 h1:vdEBpn7AzIUJRhe+CiTOJdUcTg4Q9RK+pEa0KPbLdrM= | ||||
| github.com/gofiber/utils v1.1.0/go.mod h1:poZpsnhBykfnY1Mc0KeEa6mSHrS3dV0+oBWyeQmb2e0= | ||||
| github.com/redis/go-redis/v9 v9.0.4 h1:FC82T+CHJ/Q/PdyLW++GeCO+Ol59Y4T7R4jbgjvktgc= | ||||
| github.com/redis/go-redis/v9 v9.0.4/go.mod h1:WqMKv5vnQbRuZstUwxQI195wHy+t4PuXDOjzMvcuQHk= | ||||
| github.com/redis/go-redis/v9 v9.0.5 h1:CuQcn5HIEeK7BgElubPP8CGtE0KakrnbBSTLjathl5o= | ||||
| github.com/redis/go-redis/v9 v9.0.5/go.mod h1:WqMKv5vnQbRuZstUwxQI195wHy+t4PuXDOjzMvcuQHk= | ||||
|   | ||||
| @@ -1,4 +1,13 @@ | ||||
| # Ristretto | ||||
| --- | ||||
| id: ristretto | ||||
| title: Ristretto | ||||
| --- | ||||
|  | ||||
|  | ||||
| [](https://gofiber.io/discord) | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| A Memory-bound storage driver using [`dgraph-io/ristretto`](https://github.com/dgraph-io/ristretto). | ||||
|  | ||||
|   | ||||
							
								
								
									
										11
									
								
								s3/README.md
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								s3/README.md
									
									
									
									
									
								
							| @@ -1,4 +1,13 @@ | ||||
| # S3 | ||||
| --- | ||||
| id: s3 | ||||
| title: S3 | ||||
| --- | ||||
|  | ||||
|  | ||||
| [](https://gofiber.io/discord) | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| A S3 storage driver using [aws/aws-sdk-go-v2](https://github.com/aws/aws-sdk-go-v2). | ||||
|  | ||||
|   | ||||
							
								
								
									
										32
									
								
								s3/go.mod
									
									
									
									
									
								
							
							
						
						
									
										32
									
								
								s3/go.mod
									
									
									
									
									
								
							| @@ -3,28 +3,28 @@ module github.com/gofiber/storage/s3 | ||||
| go 1.18 | ||||
|  | ||||
| require ( | ||||
| 	github.com/aws/aws-sdk-go-v2 v1.18.0 | ||||
| 	github.com/aws/aws-sdk-go-v2/config v1.18.25 | ||||
| 	github.com/aws/aws-sdk-go-v2/credentials v1.13.24 | ||||
| 	github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.67 | ||||
| 	github.com/aws/aws-sdk-go-v2/service/s3 v1.33.1 | ||||
| 	github.com/aws/aws-sdk-go-v2 v1.18.1 | ||||
| 	github.com/aws/aws-sdk-go-v2/config v1.18.27 | ||||
| 	github.com/aws/aws-sdk-go-v2/credentials v1.13.26 | ||||
| 	github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.71 | ||||
| 	github.com/aws/aws-sdk-go-v2/service/s3 v1.36.0 | ||||
| 	github.com/gofiber/utils v1.0.1 | ||||
| ) | ||||
|  | ||||
| require ( | ||||
| 	github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.10 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.3 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.33 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.27 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/internal/ini v1.3.34 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/internal/v4a v1.0.25 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.4 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.34 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.28 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/internal/ini v1.3.35 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/internal/v4a v1.0.26 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.9.11 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.1.28 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.27 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.14.2 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/service/sso v1.12.10 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/service/ssooidc v1.14.10 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/service/sts v1.19.0 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.1.29 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.28 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.14.3 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/service/sso v1.12.12 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/service/ssooidc v1.14.12 // indirect | ||||
| 	github.com/aws/aws-sdk-go-v2/service/sts v1.19.2 // indirect | ||||
| 	github.com/aws/smithy-go v1.13.5 // indirect | ||||
| 	github.com/jmespath/go-jmespath v0.4.0 // indirect | ||||
| ) | ||||
|   | ||||
							
								
								
									
										64
									
								
								s3/go.sum
									
									
									
									
									
								
							
							
						
						
									
										64
									
								
								s3/go.sum
									
									
									
									
									
								
							| @@ -1,39 +1,39 @@ | ||||
| github.com/aws/aws-sdk-go-v2 v1.18.0 h1:882kkTpSFhdgYRKVZ/VCgf7sd0ru57p2JCxz4/oN5RY= | ||||
| github.com/aws/aws-sdk-go-v2 v1.18.0/go.mod h1:uzbQtefpm44goOPmdKyAlXSNcwlRgF3ePWVW6EtJvvw= | ||||
| github.com/aws/aws-sdk-go-v2 v1.18.1 h1:+tefE750oAb7ZQGzla6bLkOwfcQCEtC5y2RqoqCeqKo= | ||||
| github.com/aws/aws-sdk-go-v2 v1.18.1/go.mod h1:uzbQtefpm44goOPmdKyAlXSNcwlRgF3ePWVW6EtJvvw= | ||||
| github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.10 h1:dK82zF6kkPeCo8J1e+tGx4JdvDIQzj7ygIoLg8WMuGs= | ||||
| github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.4.10/go.mod h1:VeTZetY5KRJLuD/7fkQXMU6Mw7H5m/KP2J5Iy9osMno= | ||||
| github.com/aws/aws-sdk-go-v2/config v1.18.25 h1:JuYyZcnMPBiFqn87L2cRppo+rNwgah6YwD3VuyvaW6Q= | ||||
| github.com/aws/aws-sdk-go-v2/config v1.18.25/go.mod h1:dZnYpD5wTW/dQF0rRNLVypB396zWCcPiBIvdvSWHEg4= | ||||
| github.com/aws/aws-sdk-go-v2/credentials v1.13.24 h1:PjiYyls3QdCrzqUN35jMWtUK1vqVZ+zLfdOa/UPFDp0= | ||||
| github.com/aws/aws-sdk-go-v2/credentials v1.13.24/go.mod h1:jYPYi99wUOPIFi0rhiOvXeSEReVOzBqFNOX5bXYoG2o= | ||||
| github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.3 h1:jJPgroehGvjrde3XufFIJUZVK5A2L9a3KwSFgKy9n8w= | ||||
| github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.3/go.mod h1:4Q0UFP0YJf0NrsEuEYHpM9fTSEVnD16Z3uyEF7J9JGM= | ||||
| github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.67 h1:fI9/5BDEaAv/pv1VO1X1n3jfP9it+IGqWsCuuBQI8wM= | ||||
| github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.67/go.mod h1:zQClPRIwQZfJlZq6WZve+s4Tb4JW+3V6eS+4+KrYeP8= | ||||
| github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.33 h1:kG5eQilShqmJbv11XL1VpyDbaEJzWxd4zRiCG30GSn4= | ||||
| github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.33/go.mod h1:7i0PF1ME/2eUPFcjkVIwq+DOygHEoK92t5cDqNgYbIw= | ||||
| github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.27 h1:vFQlirhuM8lLlpI7imKOMsjdQLuN9CPi+k44F/OFVsk= | ||||
| github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.27/go.mod h1:UrHnn3QV/d0pBZ6QBAEQcqFLf8FAzLmoUfPVIueOvoM= | ||||
| github.com/aws/aws-sdk-go-v2/internal/ini v1.3.34 h1:gGLG7yKaXG02/jBlg210R7VgQIotiQntNhsCFejawx8= | ||||
| github.com/aws/aws-sdk-go-v2/internal/ini v1.3.34/go.mod h1:Etz2dj6UHYuw+Xw830KfzCfWGMzqvUTCjUj5b76GVDc= | ||||
| github.com/aws/aws-sdk-go-v2/internal/v4a v1.0.25 h1:AzwRi5OKKwo4QNqPf7TjeO+tK8AyOK3GVSwmRPo7/Cs= | ||||
| github.com/aws/aws-sdk-go-v2/internal/v4a v1.0.25/go.mod h1:SUbB4wcbSEyCvqBxv/O/IBf93RbEze7U7OnoTlpPB+g= | ||||
| github.com/aws/aws-sdk-go-v2/config v1.18.27 h1:Az9uLwmssTE6OGTpsFqOnaGpLnKDqNYOJzWuC6UAYzA= | ||||
| github.com/aws/aws-sdk-go-v2/config v1.18.27/go.mod h1:0My+YgmkGxeqjXZb5BYme5pc4drjTnM+x1GJ3zv42Nw= | ||||
| github.com/aws/aws-sdk-go-v2/credentials v1.13.26 h1:qmU+yhKmOCyujmuPY7tf5MxR/RKyZrOPO3V4DobiTUk= | ||||
| github.com/aws/aws-sdk-go-v2/credentials v1.13.26/go.mod h1:GoXt2YC8jHUBbA4jr+W3JiemnIbkXOfxSXcisUsZ3os= | ||||
| github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.4 h1:LxK/bitrAr4lnh9LnIS6i7zWbCOdMsfzKFBI6LUCS0I= | ||||
| github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.13.4/go.mod h1:E1hLXN/BL2e6YizK1zFlYd8vsfi2GTjbjBazinMmeaM= | ||||
| github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.71 h1:SAB1UAVaf6nGCu3zyIrV+VWsendXrms1GqtW4zBotKA= | ||||
| github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.71/go.mod h1:ZNo5H4PR3/fwsXYqb+Ld5YAfvHcYCbltaTTtSay4l2o= | ||||
| github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.34 h1:A5UqQEmPaCFpedKouS4v+dHCTUo2sKqhoKO9U5kxyWo= | ||||
| github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.34/go.mod h1:wZpTEecJe0Btj3IYnDx/VlUzor9wm3fJHyvLpQF0VwY= | ||||
| github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.28 h1:srIVS45eQuewqz6fKKu6ZGXaq6FuFg5NzgQBAM6g8Y4= | ||||
| github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.28/go.mod h1:7VRpKQQedkfIEXb4k52I7swUnZP0wohVajJMRn3vsUw= | ||||
| github.com/aws/aws-sdk-go-v2/internal/ini v1.3.35 h1:LWA+3kDM8ly001vJ1X1waCuLJdtTl48gwkPKWy9sosI= | ||||
| github.com/aws/aws-sdk-go-v2/internal/ini v1.3.35/go.mod h1:0Eg1YjxE0Bhn56lx+SHJwCzhW+2JGtizsrx+lCqrfm0= | ||||
| github.com/aws/aws-sdk-go-v2/internal/v4a v1.0.26 h1:wscW+pnn3J1OYnanMnza5ZVYXLX4cKk5rAvUAl4Qu+c= | ||||
| github.com/aws/aws-sdk-go-v2/internal/v4a v1.0.26/go.mod h1:MtYiox5gvyB+OyP0Mr0Sm/yzbEAIPL9eijj/ouHAPw0= | ||||
| github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.9.11 h1:y2+VQzC6Zh2ojtV2LoC0MNwHWc6qXv/j2vrQtlftkdA= | ||||
| github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.9.11/go.mod h1:iV4q2hsqtNECrfmlXyord9u4zyuFEJX9eLgLpSPzWA8= | ||||
| github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.1.28 h1:vGWm5vTpMr39tEZfQeDiDAMgk+5qsnvRny3FjLpnH5w= | ||||
| github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.1.28/go.mod h1:spfrICMD6wCAhjhzHuy6DOZZ+LAIY10UxhUmLzpJTTs= | ||||
| github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.27 h1:0iKliEXAcCa2qVtRs7Ot5hItA2MsufrphbRFlz1Owxo= | ||||
| github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.27/go.mod h1:EOwBD4J4S5qYszS5/3DpkejfuK+Z5/1uzICfPaZLtqw= | ||||
| github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.14.2 h1:NbWkRxEEIRSCqxhsHQuMiTH7yo+JZW1gp8v3elSVMTQ= | ||||
| github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.14.2/go.mod h1:4tfW5l4IAB32VWCDEBxCRtR9T4BWy4I4kr1spr8NgZM= | ||||
| github.com/aws/aws-sdk-go-v2/service/s3 v1.33.1 h1:O+9nAy9Bb6bJFTpeNFtd9UfHbgxO1o4ZDAM9rQp5NsY= | ||||
| github.com/aws/aws-sdk-go-v2/service/s3 v1.33.1/go.mod h1:J9kLNzEiHSeGMyN7238EjJmBpCniVzFda75Gxl/NqB8= | ||||
| github.com/aws/aws-sdk-go-v2/service/sso v1.12.10 h1:UBQjaMTCKwyUYwiVnUt6toEJwGXsLBI6al083tpjJzY= | ||||
| github.com/aws/aws-sdk-go-v2/service/sso v1.12.10/go.mod h1:ouy2P4z6sJN70fR3ka3wD3Ro3KezSxU6eKGQI2+2fjI= | ||||
| github.com/aws/aws-sdk-go-v2/service/ssooidc v1.14.10 h1:PkHIIJs8qvq0e5QybnZoG1K/9QTrLr9OsqCIo59jOBA= | ||||
| github.com/aws/aws-sdk-go-v2/service/ssooidc v1.14.10/go.mod h1:AFvkxc8xfBe8XA+5St5XIHHrQQtkxqrRincx4hmMHOk= | ||||
| github.com/aws/aws-sdk-go-v2/service/sts v1.19.0 h1:2DQLAKDteoEDI8zpCzqBMaZlJuoE9iTYD0gFmXVax9E= | ||||
| github.com/aws/aws-sdk-go-v2/service/sts v1.19.0/go.mod h1:BgQOMsg8av8jset59jelyPW7NoZcZXLVpDsXunGDrk8= | ||||
| github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.1.29 h1:zZSLP3v3riMOP14H7b4XP0uyfREDQOYv2cqIrvTXDNQ= | ||||
| github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.1.29/go.mod h1:z7EjRjVwZ6pWcWdI2H64dKttvzaP99jRIj5hphW0M5U= | ||||
| github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.28 h1:bkRyG4a929RCnpVSTvLM2j/T4ls015ZhhYApbmYs15s= | ||||
| github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.28/go.mod h1:jj7znCIg05jXlaGBlFMGP8+7UN3VtCkRBG2spnmRQkU= | ||||
| github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.14.3 h1:dBL3StFxHtpBzJJ/mNEsjXVgfO+7jR0dAIEwLqMapEA= | ||||
| github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.14.3/go.mod h1:f1QyiAsvIv4B49DmCqrhlXqyaR+0IxMmyX+1P+AnzOM= | ||||
| github.com/aws/aws-sdk-go-v2/service/s3 v1.36.0 h1:lEmQ1XSD9qLk+NZXbgvLJI/IiTz7OIR2TYUTFH25EI4= | ||||
| github.com/aws/aws-sdk-go-v2/service/s3 v1.36.0/go.mod h1:aVbf0sko/TsLWHx30c/uVu7c62+0EAJ3vbxaJga0xCw= | ||||
| github.com/aws/aws-sdk-go-v2/service/sso v1.12.12 h1:nneMBM2p79PGWBQovYO/6Xnc2ryRMw3InnDJq1FHkSY= | ||||
| github.com/aws/aws-sdk-go-v2/service/sso v1.12.12/go.mod h1:HuCOxYsF21eKrerARYO6HapNeh9GBNq7fius2AcwodY= | ||||
| github.com/aws/aws-sdk-go-v2/service/ssooidc v1.14.12 h1:2qTR7IFk7/0IN/adSFhYu9Xthr0zVFTgBrmPldILn80= | ||||
| github.com/aws/aws-sdk-go-v2/service/ssooidc v1.14.12/go.mod h1:E4VrHCPzmVB/KFXtqBGKb3c8zpbNBgKe3fisDNLAW5w= | ||||
| github.com/aws/aws-sdk-go-v2/service/sts v1.19.2 h1:XFJ2Z6sNUUcAz9poj+245DMkrHE4h2j5I9/xD50RHfE= | ||||
| github.com/aws/aws-sdk-go-v2/service/sts v1.19.2/go.mod h1:dp0yLPsLBOi++WTxzCjA/oZqi6NPIhoR+uF7GeMU9eg= | ||||
| github.com/aws/smithy-go v1.13.5 h1:hgz0X/DX0dGqTYpGALqXJoRKRj5oQ7150i5FdTePzO8= | ||||
| github.com/aws/smithy-go v1.13.5/go.mod h1:Tg+OJXh4MB2R/uN61Ko2f6hTZwB/ZYGOtib8J3gBHzA= | ||||
| github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= | ||||
|   | ||||
| @@ -1,4 +1,13 @@ | ||||
| # SQLite3 | ||||
| --- | ||||
| id: sqlite3 | ||||
| title: SQLite3 | ||||
| --- | ||||
|  | ||||
|  | ||||
| [](https://gofiber.io/discord) | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| A SQLite3 storage driver using [mattn/go-sqlite3](https://github.com/mattn/go-sqlite3). | ||||
|  | ||||
|   | ||||
| @@ -4,5 +4,5 @@ go 1.17 | ||||
|  | ||||
| require ( | ||||
| 	github.com/gofiber/utils v1.1.0 | ||||
| 	github.com/mattn/go-sqlite3 v1.14.16 | ||||
| 	github.com/mattn/go-sqlite3 v1.14.17 | ||||
| ) | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| github.com/gofiber/utils v1.1.0 h1:vdEBpn7AzIUJRhe+CiTOJdUcTg4Q9RK+pEa0KPbLdrM= | ||||
| github.com/gofiber/utils v1.1.0/go.mod h1:poZpsnhBykfnY1Mc0KeEa6mSHrS3dV0+oBWyeQmb2e0= | ||||
| github.com/mattn/go-sqlite3 v1.14.16 h1:yOQRA0RpS5PFz/oikGwBEqvAWhWg5ufRz4ETLjwpU1Y= | ||||
| github.com/mattn/go-sqlite3 v1.14.16/go.mod h1:2eHXhiwb8IkHr+BDWZGa96P6+rkvnG63S2DGjv9HUNg= | ||||
| github.com/mattn/go-sqlite3 v1.14.17 h1:mCRHCLDUBXgpKAqIKsaAaAsrAlbkeomtRFKXh2L6YIM= | ||||
| github.com/mattn/go-sqlite3 v1.14.17/go.mod h1:2eHXhiwb8IkHr+BDWZGa96P6+rkvnG63S2DGjv9HUNg= | ||||
|   | ||||
		Reference in New Issue
	
	Block a user