model

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthKey

func NewAuthKey(id string) (key.Key, error)

func NewUidKey

func NewUidKey(appName string) (key.Key, error)

Types

type Dao

type Dao struct {
	nosql.DocumentBase `bson:"-"`
	Data               *Data `bson:"data"`
}

func NewAuthModel

func NewAuthModel(id string, doc diface.ICollection, cache diface.ICache) (*Dao, error)

func (*Dao) GetUid

func (d *Dao) GetUid() string

func (*Dao) Init

func (d *Dao) Init(id string, doc diface.ICollection, cache diface.ICache) error

func (*Dao) InitDefault

func (d *Dao) InitDefault(uid string) error

type Data

type Data struct {
	Uid string `json:"uid" bson:"uid"`
}

Jump to

Keyboard shortcuts

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