server

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: GPL-3.0 Imports: 17 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunMockServer

func RunMockServer() (*bridgectrl.BridgeController, error)

RunMockServer runs mock server

func RunServer

func RunServer(storage interface{}, bridgeCtrl *bridgectrl.BridgeController, cfg Config) error

RunServer runs gRPC server and HTTP gateway

Types

type Config

type Config struct {
	// GRPCPort is TCP port to listen by gRPC server
	GRPCPort string
	// HTTPPort is TCP port to listen by HTTP/REST gateway
	HTTPPort string
}

Config struct

Jump to

Keyboard shortcuts

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