service

package
v0.0.0-...-9d05754 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientStart

func ClientStart(dis *discovery.Discovery, svcName string)

func StartHttpClient

func StartHttpClient(ip, port, serviceName, funcName string)

func StartHttpServer

func StartHttpServer()

func StartService

func StartService() error

Types

type Config

type Config struct {
	Log        *LogConfig        `yaml:"log" json:"log"`
	Etcd       *EtcdConfig       `yaml:"etcd" json:"etcd"`
	Server     *ServerConfig     `yaml:"server" json:"server"`
	HttpServer *HttpServerConfig `yaml:"httpServer" json:"httpServer"`
}

type EtcdConfig

type EtcdConfig struct {
	Endpoints []string `yaml:"endpoints" json:"endpoints"`
}

type HttpServerConfig

type HttpServerConfig struct {
	Port      string `yaml:"port" json:"port"`
	HttpsPort string `yaml:"httpsPort" json:"httpsPort"`
	PrefixUrl string `yaml:"prefixUrl" json:"prefixUrl"`
}

type LogConfig

type LogConfig struct {
	LogPath  string `yaml:"logPath" json:"logPath"`
	LogLevel string `yaml:"logLevel" json:"logLevel"`
}

type ServerConfig

type ServerConfig struct {
	Name string `yaml:"name" json:"name"`
	Port string `yaml:"port" json:"port"`
}

Jump to

Keyboard shortcuts

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