Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadHostState ¶
func SaveHostState ¶
Types ¶
type Local ¶
type Local struct {
Path string
}
type PersistantState ¶
type PersistantState interface { // Saves given state data. Save(ctx context.Context, bytes []byte) error // Loads a previously saved state data. If no previous state exists, returns nil. Load(ctx context.Context) (*[]byte, error) String() string }
PersistantState defines an interface for loading and saving HostState.
Click to show internal directories.
Click to hide internal directories.