walletd

package
v0.5.0-app-build Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: MIT Imports: 39 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NoWalletVersionCheck bool
)

Functions

func GenerateSelfSignedCertificate added in v0.4.2

func GenerateSelfSignedCertificate() tls.Certificate

func GetSignedCertificate added in v0.4.2

func GetSignedCertificate(TlsFiles []string) tls.Certificate

func Interrupt

func Interrupt(pid int)

func NewLogWriter

func NewLogWriter(s service.Service, logFilename, jsonLogFilename string) func(string, logAnnotator) (io.Writer, error)

Types

type JrpcMethods

type JrpcMethods struct {
	Options
	// contains filtered or unexported fields
}

func NewJrpc

func NewJrpc(opts Options) (*JrpcMethods, error)

func (*JrpcMethods) Each added in v0.5.0

func (m *JrpcMethods) Each(fn func(*vault.Wallet) error) error

func (*JrpcMethods) Get added in v0.5.0

func (m *JrpcMethods) Get(walletDir string, name string, passphrase []byte) (*vault.Vault, error)

func (*JrpcMethods) GetModel added in v0.5.0

func (m *JrpcMethods) GetModel(walletDir string, name string, passphrase []byte) (*model.Model, error)

func (*JrpcMethods) GetWallet added in v0.5.0

func (m *JrpcMethods) GetWallet(walletDir string) *vault.Wallet

func (*JrpcMethods) NewMux

func (m *JrpcMethods) NewMux() http.Handler

func (*JrpcMethods) Start

func (m *JrpcMethods) Start(addr string) error

func (*JrpcMethods) Stop

func (m *JrpcMethods) Stop(ctx context.Context) error

func (*JrpcMethods) UseMemDB added in v0.5.0

func (m *JrpcMethods) UseMemDB() bool

type Options

type Options struct {
	Logger   *slog.Logger
	TLSFiles []string
	UseMemDB bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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