serviceconfig

package
v0.0.0-...-fea0aa2 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Types

type Client

type Client struct {
	Id   string `json:"id"`
	Port int    `json:"port"`
}

type Config

type Config struct {
	Id         int       `json:"-"`
	QuorumSize int       `json:"quorum_size"`
	Replicas   []Replica `json:"replicas"`
	Clients    []Client  `json:"clients"`
	Recover    bool      `json:"-"`
}

func GetConfig

func GetConfig() *Config

type Replica

type Replica struct {
	Id      int  `json:"id"`
	Primary bool `json:"primary"`
	Port    int  `json:"port"`
}

Jump to

Keyboard shortcuts

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