session

package
v0.0.0-...-9ae585a Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2026 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

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

Provider provides session functions.

func (*Provider) ConfigHelp

func (this *Provider) ConfigHelp() []config.Help

func (*Provider) Configure

func (this *Provider) Configure(conf config.ConfigView) error

func (*Provider) FuncMapFor

func (this *Provider) FuncMapFor(document *step.Document) step.FuncMap

FuncMapFor fulfills the step.FuncProviderFor interface.

func (*Provider) Init

func (this *Provider) Init(ctx context.Context) error

func (*Provider) Package

func (this *Provider) Package() string

Package fulfills the step.Provider interface.

func (*Provider) Trim

func (this *Provider) Trim(ctx context.Context) error

type Session

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

func (*Session) Auth

func (this *Session) Auth(name, password string) (bool, error)

func (*Session) AuthOK

func (this *Session) AuthOK() bool

func (*Session) AuthToken

func (this *Session) AuthToken() string

func (*Session) AuthUser

func (this *Session) AuthUser() string

func (*Session) Clear

func (this *Session) Clear() string

func (*Session) Del

func (this *Session) Del(name string) string

func (*Session) Expiration

func (this *Session) Expiration() time.Time

func (*Session) Expired

func (this *Session) Expired() bool

func (*Session) Get

func (this *Session) Get(name string) (any, error)

func (*Session) ID

func (this *Session) ID() uuid.UUID

func (*Session) InAuthGroup

func (this *Session) InAuthGroup(group string) (bool, error)

func (*Session) Set

func (this *Session) Set(name string, value any) (string, error)

func (*Session) String

func (this *Session) String() string

Source Files

  • session.go

Jump to

Keyboard shortcuts

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