controldb

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

README

The control db is one of the db alternative to manage the services.

The control db has 3 parts, client, server and protocol. The server side is the central service for the services. The control server will register a well-known DNS name. The client side implements the DB interface, and talks to the control server via the DNS name. The protocol defines the internal communication protocols between client and server. The protocol is definied by GPB, and use gRPC for communication.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyConfigFile

func CopyConfigFile(cfg *pb.ConfigFile) *pb.ConfigFile

func CopyDevice

func CopyDevice(a1 *pb.Device) *pb.Device

func CopyMemberConfig

func CopyMemberConfig(a1 []*pb.MemberConfig) []*pb.MemberConfig

func CopyServiceMember

func CopyServiceMember(a1 *pb.ServiceMember) *pb.ServiceMember

func CopyServiceStaticIP added in v0.8.1

func CopyServiceStaticIP(serviceip *pb.ServiceStaticIP) *pb.ServiceStaticIP

func EqualAttr

func EqualAttr(a1 *pb.ServiceAttr, a2 *pb.ServiceAttr, skipMtime bool) bool

func EqualConfigFile

func EqualConfigFile(a1 *pb.ConfigFile, a2 *pb.ConfigFile, skipMtime bool, skipContent bool) bool

func EqualDevice

func EqualDevice(a1 *pb.Device, a2 *pb.Device) bool

func EqualMemberConfig

func EqualMemberConfig(c1 []*pb.MemberConfig, c2 []*pb.MemberConfig) bool

func EqualService

func EqualService(a1 *pb.Service, a2 *pb.Service) bool

func EqualServiceMember

func EqualServiceMember(a1 *pb.ServiceMember, a2 *pb.ServiceMember, skipMtime bool) bool

func EqualServiceStaticIP added in v0.8.1

func EqualServiceStaticIP(a1 *pb.ServiceStaticIP, a2 *pb.ServiceStaticIP) bool

func GenDbConfigFile

func GenDbConfigFile(cfg *pb.ConfigFile) *common.ConfigFile

func GenDbDevice

func GenDbDevice(dev *pb.Device) *common.Device

func GenDbMemberConfig

func GenDbMemberConfig(cfgs []*pb.MemberConfig) []*common.MemberConfig

func GenDbService

func GenDbService(service *pb.Service) *common.Service

func GenDbServiceAttr

func GenDbServiceAttr(attr *pb.ServiceAttr) *common.ServiceAttr

func GenDbServiceMember

func GenDbServiceMember(member *pb.ServiceMember) *common.ServiceMember

func GenDbServiceStaticIP added in v0.8.1

func GenDbServiceStaticIP(serviceip *pb.ServiceStaticIP) *common.ServiceStaticIP

func GenPbConfigFile

func GenPbConfigFile(cfg *common.ConfigFile) *pb.ConfigFile

func GenPbDevice

func GenPbDevice(dev *common.Device) *pb.Device

func GenPbMemberConfig

func GenPbMemberConfig(cfgs []*common.MemberConfig) []*pb.MemberConfig

func GenPbService

func GenPbService(service *common.Service) *pb.Service

func GenPbServiceAttr

func GenPbServiceAttr(attr *common.ServiceAttr) *pb.ServiceAttr

func GenPbServiceMember

func GenPbServiceMember(member *common.ServiceMember) *pb.ServiceMember

func GenPbServiceStaticIP added in v0.8.1

func GenPbServiceStaticIP(serviceip *common.ServiceStaticIP) *pb.ServiceStaticIP

func PrintConfigFile

func PrintConfigFile(cfg *pb.ConfigFile) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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