models

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheEngine

type CacheEngine string

CacheEngine ...

var MemoryCacheEngine CacheEngine = "MEMORY"

MemoryCacheEngine ...

var RedisCacheEngine CacheEngine = "REDIS"

RedisCacheEngine ...

func GetCacheEngine

func GetCacheEngine(s string) (CacheEngine, error)

GetCacheEngine ...

type Group

type Group struct {
	Name     string
	ObjectID string
}

Group is the struct for a group

func (Group) MarshalBinary

func (i Group) MarshalBinary() ([]byte, error)

MarshalBinary to marshal Group object

func (*Group) UnmarshalBinary

func (i *Group) UnmarshalBinary(data []byte) error

UnmarshalBinary to unmarshal Group object

type GroupIdentifier

type GroupIdentifier string

GroupIdentifier is the type for what identifier should be sent to the backend

var NameGroupIdentifier GroupIdentifier = "NAME"

NameGroupIdentifier defines that the Name should be sent to the backend

var ObjectIDGroupIdentifier GroupIdentifier = "OBJECTID"

ObjectIDGroupIdentifier defines that the ObjectID should be sent to the backend

func GetGroupIdentifier

func GetGroupIdentifier(s string) (GroupIdentifier, error)

GetGroupIdentifier ...

type User

type User struct {
	Username string
	ObjectID string
	Groups   []Group
	Type     UserType
}

User is the struct for a currently logged in user

func (User) MarshalBinary

func (i User) MarshalBinary() ([]byte, error)

MarshalBinary to marshal User object

func (*User) UnmarshalBinary

func (i *User) UnmarshalBinary(data []byte) error

UnmarshalBinary to unmarshal User object

type UserType

type UserType string

UserType is the type of user

var NormalUserType UserType = "NormalUser"

NormalUserType is a normal user

var ServicePrincipalUserType UserType = "ServicePrincipal"

ServicePrincipalUserType is a serivce principal

Jump to

Keyboard shortcuts

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