user

package
v0.0.0-...-29fea5a Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ExpiryDateLayout = "2006-01-02"

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

type Env struct {
	Expiration time.Time `json:"expiration"`
	Users      []string  `json:"users"`
}

func NewUserEnv

func NewUserEnv() *Env

func (*Env) IsExpired

func (u *Env) IsExpired() bool

func (*Env) MarshalJSON

func (u *Env) MarshalJSON() ([]byte, error)

func (*Env) Populate

func (u *Env) Populate() error

func (*Env) UnmarshalJSON

func (u *Env) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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