mock

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: GPL-3.0 Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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