database

package
v0.0.0-...-0136d5f Latest Latest
Warning

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

Go to latest
Published: May 22, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindGroup

func FindGroup(config *config.MongoConfig, query *config.MongoQuery, groupName string, subgroup string) (*models.Group, error)

func GetGroupList

func GetGroupList(config *config.MongoConfig, query *config.MongoQuery) (*models.GroupList, error)

func GetHash

func GetHash(config *config.MongoConfig, query *config.MongoQuery) ([]string, error)

func InsertGroupList

func InsertGroupList(config *config.MongoConfig, query *config.MongoQuery) error

func InsertGroups

func InsertGroups(config *config.MongoConfig, query *config.MongoQuery, groups []models.Group) error

func InsertHash

func InsertHash(config *config.MongoConfig, query *config.MongoQuery, hash []string) error

func SetConfig

func SetConfig(Host string) *config.MongoConfig

func SetQuery

func SetQuery(documentName, collectionName string) *config.MongoQuery

Types

type NilUriError

type NilUriError struct{}

func (*NilUriError) Error

func (e *NilUriError) Error() string

Jump to

Keyboard shortcuts

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