Documentation ¶
Index ¶
- type AuthServerStub
- type AuthTokenHandlerStub
- func (stub *AuthTokenHandlerStub) Decode(accessToken string) (authentication.AuthToken, error)
- func (stub *AuthTokenHandlerStub) Encode(authToken authentication.AuthToken) (string, error)
- func (stub *AuthTokenHandlerStub) GetSignableMessage(address, unsignedToken []byte) []byte
- func (stub *AuthTokenHandlerStub) GetSignableMessageLegacy(address, unsignedToken []byte) []byte
- func (stub *AuthTokenHandlerStub) GetUnsignedToken(authToken authentication.AuthToken) []byte
- func (stub *AuthTokenHandlerStub) IsInterfaceNil() bool
- type AuthTokenStub
- func (stub *AuthTokenStub) GetAddress() []byte
- func (stub *AuthTokenStub) GetBlockHash() string
- func (stub *AuthTokenStub) GetExtraInfo() []byte
- func (stub *AuthTokenStub) GetHost() []byte
- func (stub *AuthTokenStub) GetSignature() []byte
- func (stub *AuthTokenStub) GetTtl() int64
- func (stub *AuthTokenStub) IsInterfaceNil() bool
- type NativeStub
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthServerStub ¶
type AuthServerStub struct {
ValidateCalled func(accessToken authentication.AuthToken) error
}
AuthServerStub -
func (*AuthServerStub) IsInterfaceNil ¶
func (stub *AuthServerStub) IsInterfaceNil() bool
IsInterfaceNil -
func (*AuthServerStub) Validate ¶
func (stub *AuthServerStub) Validate(accessToken authentication.AuthToken) error
Validate -
type AuthTokenHandlerStub ¶
type AuthTokenHandlerStub struct { DecodeCalled func(accessToken string) (authentication.AuthToken, error) EncodeCalled func(authToken authentication.AuthToken) (string, error) GetUnsignedTokenCalled func(authToken authentication.AuthToken) []byte GetSignableMessageCalled func(address, unsignedToken []byte) []byte GetSignableMessageLegacyCalled func(address, unsignedToken []byte) []byte }
AuthTokenHandlerStub -
func (*AuthTokenHandlerStub) Decode ¶
func (stub *AuthTokenHandlerStub) Decode(accessToken string) (authentication.AuthToken, error)
Decode -
func (*AuthTokenHandlerStub) Encode ¶
func (stub *AuthTokenHandlerStub) Encode(authToken authentication.AuthToken) (string, error)
Encode -
func (*AuthTokenHandlerStub) GetSignableMessage ¶
func (stub *AuthTokenHandlerStub) GetSignableMessage(address, unsignedToken []byte) []byte
GetSignableMessage -
func (*AuthTokenHandlerStub) GetSignableMessageLegacy ¶
func (stub *AuthTokenHandlerStub) GetSignableMessageLegacy(address, unsignedToken []byte) []byte
GetSignableMessageLegacy -
func (*AuthTokenHandlerStub) GetUnsignedToken ¶
func (stub *AuthTokenHandlerStub) GetUnsignedToken(authToken authentication.AuthToken) []byte
GetTokenBody -
func (*AuthTokenHandlerStub) IsInterfaceNil ¶
func (stub *AuthTokenHandlerStub) IsInterfaceNil() bool
IsInterfaceNil -
type AuthTokenStub ¶
type AuthTokenStub struct { GetTtlCalled func() int64 GetAddressCalled func() []byte GetHostCalled func() []byte GetSignatureCalled func() []byte GetBlockHashCalled func() string GetExtraInfoCalled func() []byte IsInterfaceNilCalled func() bool }
AuthTokenStub -
func (*AuthTokenStub) GetBlockHash ¶
func (stub *AuthTokenStub) GetBlockHash() string
GetBlockHash -
func (*AuthTokenStub) GetExtraInfo ¶
func (stub *AuthTokenStub) GetExtraInfo() []byte
GetExtraInfo -
func (*AuthTokenStub) GetSignature ¶
func (stub *AuthTokenStub) GetSignature() []byte
GetSignature -
func (*AuthTokenStub) IsInterfaceNil ¶
func (stub *AuthTokenStub) IsInterfaceNil() bool
IsInterfaceNil -
type NativeStub ¶
NativeStub -
func (*NativeStub) GetAccessToken ¶
func (stub *NativeStub) GetAccessToken() (string, error)
GetAccessToken -
Click to show internal directories.
Click to hide internal directories.