local

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultStateFile = "devstream.state"

Variables

This section is empty.

Functions

This section is empty.

Types

type Local

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

Local is a default implement for backend.Backend

func NewLocal

func NewLocal(filename string) *Local

NewLocal will use DefaultStateFile as statemanager file if filename is not given.

func (*Local) Read

func (l *Local) Read() ([]byte, error)

Read is used to retrieve the data from local file.

func (*Local) Write

func (l *Local) Write(data []byte) error

Write is used to write the data to local file.

Jump to

Keyboard shortcuts

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