contracts

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MIT Imports: 0 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache added in v0.0.8

type Cache interface {
	Get(string) ([]byte, error)
	GetWithUnmarshal(string, any) error

	Set(string, []byte, ...int) error
	SetWithMarshal(string, any, ...int) error

	Delete(string) error
	Exists(string) bool

	Remember(string, any, RememberCallback, ...int) error

	GetProvider() any
}

type CookieTranscoder

type CookieTranscoder interface {
	Encode(string, any) (string, error)
	Decode(string, string, any) error
}

type Logger

type Logger interface {
	Debug(string, ...any)
	Warn(string, ...any)
	Info(string, ...any)
	Error(string, ...any)
}

type RememberCallback

type RememberCallback func() (any, error)

type Session

type Session interface {
	GetId() string
	Set(string, any)
	Get(string) any
	Has(string) bool
	Remove(string)
	Destroy() error
	Save() error

	All() map[string]any
}

type SessionStore

type SessionStore interface {
	Get(string, any) error
	Save(string, any) error
	Delete(string) error
}

Jump to

Keyboard shortcuts

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