tonutils_impl

package
v0.0.0-...-6b1ffde Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	URL   string
	Port  string
	Login string
	Token string
}

type TonutilsStorage

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

func NewTonutilsStorage

func NewTonutilsStorage(config Config) *TonutilsStorage

func (*TonutilsStorage) AddByBagID

func (s *TonutilsStorage) AddByBagID(bagID string, path string) (bool, error)

func (*TonutilsStorage) Create

func (s *TonutilsStorage) Create(path string) (string, bool, error)

func (*TonutilsStorage) Info

func (s *TonutilsStorage) Info(bagID string) (interface{}, error)

func (*TonutilsStorage) List

func (s *TonutilsStorage) List() ([]entity.BagID, error)

func (*TonutilsStorage) Remove

func (s *TonutilsStorage) Remove(bagID string) bool

Jump to

Keyboard shortcuts

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