server

package
v0.0.0-...-aa76b34 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartApiTrasport

func StartApiTrasport(s *ApiNodeServer) error

func StartGRPCTransport

func StartGRPCTransport(n middleware.NodeServer) error

func StopApiTransport

func StopApiTransport(s *ApiNodeServer) error

func StopGRPCTransport

func StopGRPCTransport(n middleware.NodeServer) error

Types

type APIError

type APIError struct {
	Code int
	Err  error
}

func (APIError) Error

func (e APIError) Error() string

type ApiNodeServer

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

func NewApiServer

func NewApiServer(
	grpcListenAddress string,
	apiListenAddr string,
	node service.Api,
) (*ApiNodeServer, error)

type HTTPFunc

type HTTPFunc func(w http.ResponseWriter, r *http.Request) error

Jump to

Keyboard shortcuts

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