Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type State ¶
type State interface { GetState() *standardState GetCtx() context.Context GetLogger() *zerolog.Logger AutoCommit(interval time.Duration) Close() error }
State is an interface that defines how to read and write the state
func GetOrCreateStateFromURI ¶
func GetOrCreateStateFromURI(ctx context.Context, logger *zerolog.Logger, uri url.URL, interval time.Duration) (State, error)
GetOrCreateStateFromURI creates a new state if it doesn't exist on the URI provided. URI can be a file path, a database connection string, or an etcd connection string Currently, only file path is supported
Click to show internal directories.
Click to hide internal directories.