mock

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

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) GetAddress

func (stub *AuthTokenStub) GetAddress() []byte

GetAddress -

func (*AuthTokenStub) GetBlockHash

func (stub *AuthTokenStub) GetBlockHash() string

GetBlockHash -

func (*AuthTokenStub) GetExtraInfo

func (stub *AuthTokenStub) GetExtraInfo() []byte

GetExtraInfo -

func (*AuthTokenStub) GetHost

func (stub *AuthTokenStub) GetHost() []byte

GetHost -

func (*AuthTokenStub) GetSignature

func (stub *AuthTokenStub) GetSignature() []byte

GetSignature -

func (*AuthTokenStub) GetTtl

func (stub *AuthTokenStub) GetTtl() int64

GetTtl -

func (*AuthTokenStub) IsInterfaceNil

func (stub *AuthTokenStub) IsInterfaceNil() bool

IsInterfaceNil -

type NativeStub

type NativeStub struct {
	GetAccessTokenCalled func() (string, error)
}

NativeStub -

func (*NativeStub) GetAccessToken

func (stub *NativeStub) GetAccessToken() (string, error)

GetAccessToken -

func (*NativeStub) IsInterfaceNil

func (stub *NativeStub) IsInterfaceNil() bool

IsInterfaceNil -

Jump to

Keyboard shortcuts

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