server

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2022 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EOSServer

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

func New

func New(addr string, db *fluxdb.FluxDB) *EOSServer

func (*EOSServer) Handler

func (srv *EOSServer) Handler() http.Handler

func (*EOSServer) Serve

func (srv *EOSServer) Serve()

type HexBEKeyConverter

type HexBEKeyConverter struct{}

func (*HexBEKeyConverter) FromString

func (c *HexBEKeyConverter) FromString(key string) (uint64, error)

func (*HexBEKeyConverter) ToString

func (c *HexBEKeyConverter) ToString(key uint64) (string, error)

type HexKeyConverter

type HexKeyConverter struct{}

func (*HexKeyConverter) FromString

func (c *HexKeyConverter) FromString(key string) (uint64, error)

func (*HexKeyConverter) ToString

func (c *HexKeyConverter) ToString(key uint64) (string, error)

type KeyConverter

type KeyConverter interface {
	FromString(key string) (uint64, error)
	ToString(key uint64) (string, error)
}

type NameKeyConverter

type NameKeyConverter struct{}

func (*NameKeyConverter) FromString

func (c *NameKeyConverter) FromString(key string) (uint64, error)

func (*NameKeyConverter) ToString

func (c *NameKeyConverter) ToString(key uint64) (string, error)

type SymbolCodeKeyConverter

type SymbolCodeKeyConverter struct{}

func (*SymbolCodeKeyConverter) FromString

func (c *SymbolCodeKeyConverter) FromString(key string) (uint64, error)

func (*SymbolCodeKeyConverter) ToString

func (c *SymbolCodeKeyConverter) ToString(key uint64) (string, error)

type SymbolKeyConverter

type SymbolKeyConverter struct{}

func (*SymbolKeyConverter) FromString

func (c *SymbolKeyConverter) FromString(key string) (uint64, error)

func (*SymbolKeyConverter) ToString

func (c *SymbolKeyConverter) ToString(key uint64) (string, error)

type Uint64KeyConverter

type Uint64KeyConverter struct{}

func (*Uint64KeyConverter) FromString

func (c *Uint64KeyConverter) FromString(key string) (uint64, error)

func (*Uint64KeyConverter) ToString

func (c *Uint64KeyConverter) ToString(key uint64) (string, error)

Jump to

Keyboard shortcuts

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