meta

package
v0.0.0-...-04ccc7c Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2021 License: AGPL-3.0 Imports: 6 Imported by: 43

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ZeroAccess    = []model.UserRole{}
	GuestAccess   = []model.UserRole{model.Guest}
	RegularAccess = []model.UserRole{model.Guest, model.Regular, model.Admin}
	UserAccess    = []model.UserRole{model.Regular, model.Admin}
	AdminAccess   = []model.UserRole{model.Admin}
)

Functions

This section is empty.

Types

type AccessConfig

type AccessConfig map[string][]model.UserRole

type CommonResponse

type CommonResponse struct {
	Success bool
	Message string
	Error   error
}

type RequestParams

type RequestParams struct {
	// contains filtered or unexported fields
}

func (*RequestParams) Limit

func (p *RequestParams) Limit() int

func (*RequestParams) Offset

func (p *RequestParams) Offset() int

func (*RequestParams) SetLimit

func (p *RequestParams) SetLimit(limit int)

func (*RequestParams) SetOffset

func (p *RequestParams) SetOffset(offset int)

func (*RequestParams) SetSortBy

func (p *RequestParams) SetSortBy(sortBy string)

func (*RequestParams) SetSortDirection

func (p *RequestParams) SetSortDirection(direction string)

func (*RequestParams) SetToken

func (p *RequestParams) SetToken(token string)

func (*RequestParams) SetUserID

func (p *RequestParams) SetUserID(userID string)

func (*RequestParams) SortBy

func (p *RequestParams) SortBy() string

func (*RequestParams) SortDirection

func (p *RequestParams) SortDirection() string

func (*RequestParams) SortDirectionNum

func (p *RequestParams) SortDirectionNum() int

func (*RequestParams) Token

func (p *RequestParams) Token() string

func (*RequestParams) UserID

func (p *RequestParams) UserID() string

type RequestQuery

type RequestQuery map[string]interface{}

func NewRequestQuery

func NewRequestQuery(i interface{}) (RequestQuery, error)

func (RequestQuery) ToBson

func (q RequestQuery) ToBson() (m bson.M, err error)

func (RequestQuery) ToSql

func (q RequestQuery) ToSql() (sqb.And, error)

type TLSCertificate

type TLSCertificate struct {
	EnableTLS bool   `yaml:"enableTLS"`
	CertFile  string `yaml:"certFile"`
	KeyFile   string `yaml:"keyFile"`
}

Jump to

Keyboard shortcuts

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