storage

package
v0.0.0-...-0830378 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2018 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPerms = 0700
	DefaultPath  = "~/.xray/"
)

Variables

View Source
var (
	I = (*Storage)(nil)
)

Functions

This section is empty.

Types

type Keys

type Keys struct {
	sync.RWMutex
	Path string
	// contains filtered or unexported fields
}

func (*Keys) Have

func (k *Keys) Have(name string) bool

type Storage

type Storage struct {
	sync.RWMutex

	Path    string
	Keys    *Keys
	Domains Wordlist
}

func Open

func Open(path string, create bool) (s *Storage, err error)

type Wordlist

type Wordlist []string

Jump to

Keyboard shortcuts

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