types

package
v0.0.0-...-6c80e09 Latest Latest
Warning

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

Go to latest
Published: May 9, 2020 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateUserRequest

type CreateUserRequest struct {
	User     string `bson:"createUser"`
	Password string `bson:"pwd"`
	Roles    []Role `bson:"roles"`
}

Requests

type DropUserRequest

type DropUserRequest struct {
	User string `bson:"dropUser"`
}

type Response

type Response struct {
	Ok bool `bson:"ok"`
}

Responses

type Role

type Role struct {
	Role     string `bson:"role"`
	Database string `bson:"db"`
}

type UpdateUserRequest

type UpdateUserRequest struct {
	User     string `bson:"updateUser"`
	Password string `bson:"pwd"`
	Roles    []Role `bson:"roles"`
}

type UserInfo

type UserInfo struct {
	Id       *string `bson:"_id"`
	User     *string `bson:"user"`
	Database *string `bson:"db"`
	Roles    []Role  `bson:"roles"`
}

Types

type UserInfoRequest

type UserInfoRequest struct {
	User string `bson:"usersInfo"`
}

type UsersInfoResponse

type UsersInfoResponse struct {
	Response
	UserInfos []UserInfo `bson:"users"`
}

Jump to

Keyboard shortcuts

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