channel

package
v0.2.5-dev Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: GPL-3.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServeCommand

func ServeCommand() *cobra.Command

ServeCommand will start the application REST service as a blocking process. It takes a codec to create a RestServer object and a function to register all necessary routes.

Types

type GuardRequest

type GuardRequest struct {
	SeqNum uint64 `json:"seq_num"`
}

type IntendSettleRequest

type IntendSettleRequest struct {
	SeqNum uint64 `json:"seq_num"`
}

type RestServer

type RestServer struct {
	Mux *mux.Router
	// contains filtered or unexported fields
}

RestServer represents the Light Client Rest server

func NewRestServer

func NewRestServer() (rs *RestServer, err error)

NewRestServer creates a new rest server instance

func (*RestServer) Start

func (rs *RestServer) Start(listenAddr string, maxOpen int, readTimeout, writeTimeout uint) error

Start starts the rest server

Jump to

Keyboard shortcuts

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