session

package
v2.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrKeystoreNotProvided = errors.New("keystore not provided, use --file or --stdin")
)

Functions

func With

func With(ctx context.Context, s *Session) context.Context

Types

type Session

type Session struct {
	Version string
	// contains filtered or unexported fields
}

func From

func From(ctx context.Context) *Session

func FromCmd

func FromCmd(cmd *cobra.Command) *Session

func (*Session) GetClient

func (s *Session) GetClient() (*mixin.Client, error)

func (*Session) GetKeystore

func (s *Session) GetKeystore() (*mixin.Keystore, error)

func (*Session) GetPin

func (s *Session) GetPin() string

func (*Session) GetSpendKey

func (s *Session) GetSpendKey() *mixinnet.Key

func (*Session) WithAccessToken

func (s *Session) WithAccessToken(token string) *Session

func (*Session) WithKeystore

func (s *Session) WithKeystore(store *mixin.Keystore) *Session

func (*Session) WithPin

func (s *Session) WithPin(pin string) *Session

func (*Session) WithSpendKey

func (s *Session) WithSpendKey(key *mixinnet.Key) *Session

Jump to

Keyboard shortcuts

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