pkg

package
v0.0.0-...-98887f1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeEthRawTx

func DecodeEthRawTx(rawTx string) (*types.Transaction, error)

func GetFromAddress

func GetFromAddress(tx *types.Transaction) string

func NewApp

func NewApp(webFS embed.FS) *cli.App

func ToByte

func ToByte(v interface{}) []byte

Types

type Dict

type Dict map[string]any

func DictFromReader

func DictFromReader(reader io.Reader) Dict

func ToDict

func ToDict(val []byte) Dict

func (Dict) GetString

func (d Dict) GetString(key string) string

func (Dict) Set

func (d Dict) Set(key string, val interface{}) Dict

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(webFS embed.FS) *Handler

func (*Handler) Handle

func (h *Handler) Handle() http.Handler

type Server

type Server struct {
	Address string
	Handler http.Handler
}

func NewServer

func NewServer(addr string, webFS embed.FS) *Server

func (*Server) Start

func (s *Server) Start() error

Jump to

Keyboard shortcuts

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