api

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListServices

func ListServices(addr string, serviceNames []string) (map[string]*Service, error)

func RPCInvokeHandler

func RPCInvokeHandler(services map[string]*Service) http.Handler

func Run

func Run(ctx context.Context, conf *Config) error

Types

type Config

type Config struct {
	Port       string   `json:"port"`
	EtcdServer string   `json:"etcd_server"`
	Services   []string `json:"services"`
}

type Service

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

Jump to

Keyboard shortcuts

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