state

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthState

type AuthState interface {
	SaveAuth(authModel *AuthStateModel) (int64, error)
	UpdateAuth(authUpdate *AuthStateModel) error
	ListAuth() ([]*AuthStateModel, error)
	DeleteAuth(id int64) error
}

func InitAuthState

func InitAuthState(db state.DBManager) (AuthState, error)

type AuthStateModel

type AuthStateModel struct {
	Id          int64     `json:"id"`
	Name        string    `json:"name"`
	Description string    `json:"description"`
	Key         string    `json:"key"`
	Added       time.Time `json:"added"`
}

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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