walletd

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 23 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, error)

func GetSignedCertificate added in v0.4.2

func GetSignedCertificate(TlsFiles []string) (*tls.Certificate, error)

Types

type JrpcMethods

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

func NewJrpc

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

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

type Options

type Options struct {
	Logger      *slog.Logger
	TLSFiles    []string
	UseMemDB    bool
	MaxTokenTTL time.Duration
	OnExpire    func()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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