model

package
v0.0.0-...-2d664ad Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 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 Model

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

func NewModel

func NewModel(host string, port string) *Model

func (*Model) Del

func (m *Model) Del(key string) error

func (*Model) DelDir

func (m *Model) DelDir(key string) error

func (*Model) Ls

func (m *Model) Ls(directory string) ([]*Node, error)

func (*Model) MkDir

func (m *Model) MkDir(directory string) error

func (*Model) Set

func (m *Model) Set(key, value string) error

type Node

type Node struct {
	Name      string
	ClusterId string
	IsDir     bool
	Value     string
}

Jump to

Keyboard shortcuts

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