Documentation ¶
Index ¶
- type GophKeeperClientAPI
- func (api *GophKeeperClientAPI) AddBinary(accessToken string, binary *entity.Binary, tmpFilePath string) error
- func (api *GophKeeperClientAPI) AddCard(accessToken string, card *entity.Card) error
- func (api *GophKeeperClientAPI) AddLogin(accessToken string, login *entity.Login) error
- func (api *GophKeeperClientAPI) AddNote(accessToken string, note *entity.SecretNote) error
- func (api *GophKeeperClientAPI) DelBinary(accessToken, binaryID string) error
- func (api *GophKeeperClientAPI) DelCard(accessToken, cardID string) error
- func (api *GophKeeperClientAPI) DelLogin(accessToken, loginID string) error
- func (api *GophKeeperClientAPI) DelNote(accessToken, noteID string) error
- func (api *GophKeeperClientAPI) DownloadBinary(accessToken, outpuFilePath string, binary *entity.Binary) error
- func (api *GophKeeperClientAPI) GetBinaries(accessToken string) (binaries []entity.Binary, err error)
- func (api *GophKeeperClientAPI) GetCards(accessToken string) (cards []entity.Card, err error)
- func (api *GophKeeperClientAPI) GetLogins(accessToken string) (logins []entity.Login, err error)
- func (api *GophKeeperClientAPI) GetNotes(accessToken string) (notes []entity.SecretNote, err error)
- func (api *GophKeeperClientAPI) Login(user *entity.User) (token entity.JWT, err error)
- func (api *GophKeeperClientAPI) Register(user *entity.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GophKeeperClientAPI ¶
type GophKeeperClientAPI struct {
// contains filtered or unexported fields
}
func New ¶
func New(url string) *GophKeeperClientAPI
func (*GophKeeperClientAPI) AddCard ¶
func (api *GophKeeperClientAPI) AddCard(accessToken string, card *entity.Card) error
func (*GophKeeperClientAPI) AddLogin ¶
func (api *GophKeeperClientAPI) AddLogin(accessToken string, login *entity.Login) error
func (*GophKeeperClientAPI) AddNote ¶
func (api *GophKeeperClientAPI) AddNote(accessToken string, note *entity.SecretNote) error
func (*GophKeeperClientAPI) DelBinary ¶
func (api *GophKeeperClientAPI) DelBinary(accessToken, binaryID string) error
func (*GophKeeperClientAPI) DelCard ¶
func (api *GophKeeperClientAPI) DelCard(accessToken, cardID string) error
func (*GophKeeperClientAPI) DelLogin ¶
func (api *GophKeeperClientAPI) DelLogin(accessToken, loginID string) error
func (*GophKeeperClientAPI) DelNote ¶
func (api *GophKeeperClientAPI) DelNote(accessToken, noteID string) error
func (*GophKeeperClientAPI) DownloadBinary ¶
func (api *GophKeeperClientAPI) DownloadBinary(accessToken, outpuFilePath string, binary *entity.Binary) error
func (*GophKeeperClientAPI) GetBinaries ¶
func (api *GophKeeperClientAPI) GetBinaries(accessToken string) (binaries []entity.Binary, err error)
func (*GophKeeperClientAPI) GetCards ¶
func (api *GophKeeperClientAPI) GetCards(accessToken string) (cards []entity.Card, err error)
func (*GophKeeperClientAPI) GetLogins ¶
func (api *GophKeeperClientAPI) GetLogins(accessToken string) (logins []entity.Login, err error)
func (*GophKeeperClientAPI) GetNotes ¶
func (api *GophKeeperClientAPI) GetNotes(accessToken string) (notes []entity.SecretNote, err error)
Click to show internal directories.
Click to hide internal directories.