state

package
v0.0.0-...-0a82276 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

type State struct {
	*domain.StateBase
}

State represents a type for interacting with the underlying state.

func NewState

func NewState(factory coreDB.TxnRunnerFactory) *State

NewState returns a new State for interacting with the underlying state.

func (*State) Delete

func (st *State) Delete(ctx context.Context, name string) error

Delete implements autocert.Cache.Delete.

func (*State) Get

func (st *State) Get(ctx context.Context, name string) ([]byte, error)

Get implements autocert.Cache.Get.

func (*State) Put

func (st *State) Put(ctx context.Context, name string, data []byte) error

Put implements autocert.Cache.Put.

Jump to

Keyboard shortcuts

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