schema

package
v0.0.0-...-2f69930 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Log = bson.M{
		"name": "log",
		"index": []mongo.IndexModel{
			{
				bson.D{
					{"type", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"user", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"method", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"path", 1},
				},
				options.Index(),
			},
			{
				bson.D{
					{"delete_time", 1},
				},
				options.Index().SetExpireAfterSeconds(1),
			},
		},
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL