common

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterInfo added in v0.0.2

type ClusterInfo rpc.ClusterInfo

func (*ClusterInfo) Id added in v0.0.2

func (c *ClusterInfo) Id() uint32

func (*ClusterInfo) IpString added in v0.0.2

func (c *ClusterInfo) IpString() string

func (*ClusterInfo) ServiceType added in v0.0.2

func (c *ClusterInfo) ServiceType() rpc.SERVICE

func (*ClusterInfo) String added in v0.0.2

func (c *ClusterInfo) String() string

type Etcd added in v0.0.4

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

type IClusterInfo added in v0.0.2

type IClusterInfo interface {
	Id() uint32
	String() string
	ServiceType() rpc.SERVICE
	IpString() string
}

type Mysql added in v0.0.2

type Mysql struct {
	Ip           string `yaml:"ip"`
	Port         int32  `yaml:"port"`
	Name         string `yaml:"name"`
	User         string `yaml:"user"`
	Password     string `yaml:"password"`
	MaxIdleConns int    `yaml:"maxIdleConns"`
	MaxOpenConns int    `yaml:"maxOpenConns"`
}

type Nats added in v0.0.4

type Nats struct {
	Endpoints string `yaml:"endpoints"`
}

type Raft added in v0.0.4

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

type Redis added in v0.0.2

type Redis struct {
	Ip       string `yaml:"ip"`
	Port     int32  `yaml:"port"`
	Password string `yaml:"password"`
}

type Server added in v0.0.2

type Server struct {
	Ip   string `yaml:"ip"`
	Port int32  `yaml:"port"`
}

type SnowFlake added in v0.0.4

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

type Stub added in v0.0.2

type Stub struct {
	StubCount map[string]int64 `yaml:"stub_count"`
}

type StubMailBox added in v0.0.2

type StubMailBox struct {
	rpc.StubMailBox
}

func (*StubMailBox) Key added in v0.0.2

func (s *StubMailBox) Key() string

func (*StubMailBox) StubName added in v0.0.2

func (s *StubMailBox) StubName() string

type StubRouter added in v0.0.2

type StubRouter struct {
	STUB rpc.STUB `yaml:"stub"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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