service

package module
v0.0.0-...-41b1be1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NodeModeCluster = "cluster"
	NodeModelSingle = "single"
)

NodeModeCluster ...

View Source
const ConfigName = "service.json"

ConfigName ...

Variables

View Source
var (
	DefaultFolder = ".service"
	DefaultPath   string
)

DefaultFolder ...

Functions

This section is empty.

Types

type Config

type Config struct {
	API        api.Config       `json:"api"`
	Conversion ConversionConfig `json:"conversion"`
}

Config ...

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig ...

func (*Config) LoadJSON

func (config *Config) LoadJSON() error

LoadJSON ...

func (*Config) SaveJSON

func (config *Config) SaveJSON() error

SaveJSON ...

type ConversionConfig

type ConversionConfig struct {
	Tmp         string `json:"tmp"`
	Cache       string `json:"cache"`
	Limit       int    `json:"limit"`
	Mode        string `json:"mode"`
	Addr        string `json:"addr"`
	Username    string `json:"username"`
	Password    string `json:"password"`
	SingleAddr  string `json:"node_addr"`
	ClusterAddr string `json:"cluster_addr"`
}

ConversionConfig ...

type Service

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

Service ...

func NewService

func NewService() *Service

NewService ...

func (*Service) Start

func (s *Service) Start() error

Start ...

func (*Service) Stop

func (s *Service) Stop()

Stop ...

func (*Service) Wait

func (s *Service) Wait()

Wait ...

Directories

Path Synopsis
api
pb
cmd
server
//go:generate protoc --go_out=plugins=grpc:.
//go:generate protoc --go_out=plugins=grpc:.
bak

Jump to

Keyboard shortcuts

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