schema

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Index added in v0.3.0

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

func DecodeIndexJSON added in v0.3.0

func DecodeIndexJSON(b []byte) (index *Index, err error)

func NewIndex added in v0.5.0

func NewIndex() (idx *Index)

func (*Index) Add added in v0.5.0

func (idx *Index) Add(indice *IndiceItem) (conflictEntry *IndiceItem)

Add adds indice into idx. If an IndiceItem in idx.Items has the same name to indice, it is returned as conflictEntry

func (*Index) Find added in v0.3.0

func (idx *Index) Find(name string) (indice *IndiceItem)

func (*Index) FindPath added in v0.3.0

func (idx *Index) FindPath(name string) (path string)

func (*Index) Print added in v0.5.0

func (idx *Index) Print(pretty bool) (b []byte, err error)

func (*Index) Remove added in v0.5.0

func (idx *Index) Remove(name string) (success bool)

func (*Index) String added in v0.3.1

func (idx *Index) String() string

func (*Index) Swap added in v0.5.0

func (idx *Index) Swap(name string, indice *IndiceItem) (success bool)

type IndiceItem added in v0.3.0

type IndiceItem struct {
	Name string `json:"name"`
	Path string `json:"path"`
}

func (*IndiceItem) String added in v0.5.0

func (i *IndiceItem) String() (s string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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