state

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GlobalStateType

type GlobalStateType struct {
	FilePath string `json:"-"`

	DnsPID int
}
var GlobalState *GlobalStateType

func NewGlobalState

func NewGlobalState(path string) (*GlobalStateType, error)

Create new object with data if file exists or Create json file and return object if doesn't exists

func (*GlobalStateType) Delete

func (state *GlobalStateType) Delete() error

func (*GlobalStateType) Write

func (state *GlobalStateType) Write() error

Jump to

Keyboard shortcuts

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