client

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: GPL-3.0 Imports: 12 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVideoHeight

func GetVideoHeight(source string) string

func InitKey

func InitKey() []byte

func LoadJSON

func LoadJSON(inputFile string, dest interface{}) bool

func SaveJSON

func SaveJSON(outputFile string, source interface{}) bool

Types

type AddReply

type AddReply *api.AddReply

type AuthError

type AuthError struct {
}

type AuthSuccess

type AuthSuccess struct {
}

type BatchReply

type BatchReply *api.BatchReply

type Config

type Config struct {
	Username      string
	Password      string
	Namespace     string
	Collection    string
	Webservice    string
	ServeUrl      string
	DataHost      string
	ThumbnailHost string
	Key           []byte
	Verbose       bool
	// contains filtered or unexported fields
}

func DefaultConfig

func DefaultConfig() Config

func ReadConfig

func ReadConfig(configFile string) Config

func TestingConfig

func TestingConfig() Config

type DeleteReply

type DeleteReply *api.DeleteReply

type GetReply

type GetReply *api.GetReply

type TagOptions

type TagOptions struct {
	AddOriginalPath               bool
	PutlibForceGenerateThumbnails bool
}

type TieClient

type TieClient struct {
	Config Config
	// contains filtered or unexported fields
}

func NewTieClient

func NewTieClient(config Config) (client *TieClient)

func (*TieClient) Add

func (tc *TieClient) Add(key, value1, value2 string, handler func(reply AddReply))

func (*TieClient) Batch

func (tc *TieClient) Batch(batch *api.Batch, handler func(reply BatchReply))

func (*TieClient) CollectionInfo

func (tc *TieClient) CollectionInfo() api.CollectionInfo

func (*TieClient) Delete

func (tc *TieClient) Delete(key, value1, value2 string, handler func(reply DeleteReply))

func (*TieClient) Get

func (tc *TieClient) Get(key string, handler func(reply GetReply))

func (*TieClient) NewBatch

func (tc *TieClient) NewBatch() *api.Batch

func (*TieClient) PrintState

func (tc *TieClient) PrintState()

func (*TieClient) Update

func (tc *TieClient) Update(update api.Update, handler func(reply UpdateReply))

type TieOutput

type TieOutput map[string]map[string]map[string]bool

type UpdateReply

type UpdateReply *api.UpdateReply

Jump to

Keyboard shortcuts

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