Documentation ¶
Index ¶
- Variables
- type Api
- func (a *Api) GetContent(path, passphrase string) (res string, err error)
- func (a *Api) GetHash(path string) (res string, err error)
- func (a *Api) SetContent(path, passphrase, content string) (err error)
- func (a *Api) UrlGetContents(anywhere, secret string) string
- func (a *Api) UrlGetHash(anywhere string) string
- func (a *Api) UrlSetContents(anywhere, hash, secret string, ttl time.Duration) string
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrErrResponse = errors.New("invalid response")
)
Functions ¶
This section is empty.
Types ¶
type Api ¶
type Api struct {
ServerURL string
}
func (*Api) SetContent ¶
func (*Api) UrlGetContents ¶
func (*Api) UrlGetHash ¶
Click to show internal directories.
Click to hide internal directories.