Documentation ¶
Index ¶
- Constants
- func AddService(serviceName string)
- func AddServices(consumerServiceNames []string)
- func GetConfig() *api.Config
- func IsRegister(name string, protocol string, address string, port int) bool
- func RegisterServer(name string, protocol string, address string, port int, ...) (b bool, err error)
- func RemoveService(serviceName string)
- type Service
- type ServiceNode
Constants ¶
View Source
const ( HttpProtocol = "http" TcpProtocol = "tcp" GrpcProtocol = "grpc" )
Variables ¶
This section is empty.
Functions ¶
func AddServices ¶ added in v0.3.48
func AddServices(consumerServiceNames []string)
func IsRegister ¶ added in v0.1.6
func RegisterServer ¶ added in v0.1.0
Types ¶
type Service ¶
type Service struct {
service.BaseStruct
}
Click to show internal directories.
Click to hide internal directories.