user_types

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserTypes

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

func NewUserTypes

func NewUserTypes(db database.DB) *UserTypes

func (*UserTypes) AddUserType

func (u *UserTypes) AddUserType(userType universe.UserType, updateDB bool) error

func (*UserTypes) AddUserTypes

func (u *UserTypes) AddUserTypes(userTypes []universe.UserType, updateDB bool) error

func (*UserTypes) CreateUserType

func (u *UserTypes) CreateUserType(userTypeID umid.UMID) (universe.UserType, error)

func (*UserTypes) FilterUserTypes

func (u *UserTypes) FilterUserTypes(predicateFn universe.UserTypesFilterPredicateFn) map[umid.UMID]universe.UserType

func (*UserTypes) GetUserType

func (u *UserTypes) GetUserType(userTypeID umid.UMID) (universe.UserType, bool)

func (*UserTypes) GetUserTypes

func (u *UserTypes) GetUserTypes() map[umid.UMID]universe.UserType

func (*UserTypes) Initialize

func (u *UserTypes) Initialize(ctx types.LoggerContext) error

func (*UserTypes) Load

func (u *UserTypes) Load() error

func (*UserTypes) RegisterAPI

func (u *UserTypes) RegisterAPI(r *gin.Engine)

func (*UserTypes) RemoveUserType

func (u *UserTypes) RemoveUserType(userType universe.UserType, updateDB bool) (bool, error)

func (*UserTypes) RemoveUserTypes

func (u *UserTypes) RemoveUserTypes(userTypes []universe.UserType, updateDB bool) (bool, error)

func (*UserTypes) Save

func (u *UserTypes) Save() error

Jump to

Keyboard shortcuts

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