Documentation ¶
Index ¶
- func WithRequestTimeout(seconds int) auth1WrapperOption
- func WithVerbose() auth1WrapperOption
- type Auth1Wrapper
- func (wrapper *Auth1Wrapper) Close() error
- func (wrapper *Auth1Wrapper) GetSiteJwtSecret() ([]byte, error)
- func (wrapper *Auth1Wrapper) LoginUidpw(uid string, pw []byte) (*LoginResult, error)
- func (wrapper *Auth1Wrapper) Logout(rtk string) error
- func (wrapper *Auth1Wrapper) RefreshAuth(rtk string) (*LoginResult, error)
- func (wrapper *Auth1Wrapper) SetApiKey(apikey, secret string)
- type LoginResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithRequestTimeout ¶
func WithRequestTimeout(seconds int) auth1WrapperOption
func WithVerbose ¶
func WithVerbose() auth1WrapperOption
Types ¶
type Auth1Wrapper ¶
type Auth1Wrapper struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(auth1uri string, opts ...auth1WrapperOption) (*Auth1Wrapper, error)
func (*Auth1Wrapper) Close ¶
func (wrapper *Auth1Wrapper) Close() error
func (*Auth1Wrapper) GetSiteJwtSecret ¶
func (wrapper *Auth1Wrapper) GetSiteJwtSecret() ([]byte, error)
func (*Auth1Wrapper) LoginUidpw ¶ added in v0.0.2
func (wrapper *Auth1Wrapper) LoginUidpw(uid string, pw []byte) (*LoginResult, error)
func (*Auth1Wrapper) Logout ¶ added in v0.0.2
func (wrapper *Auth1Wrapper) Logout(rtk string) error
func (*Auth1Wrapper) RefreshAuth ¶ added in v0.0.2
func (wrapper *Auth1Wrapper) RefreshAuth(rtk string) (*LoginResult, error)
func (*Auth1Wrapper) SetApiKey ¶
func (wrapper *Auth1Wrapper) SetApiKey(apikey, secret string)
type LoginResult ¶ added in v0.0.2
Click to show internal directories.
Click to hide internal directories.