Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EtcdGateway ¶
type EtcdGateway struct {
// contains filtered or unexported fields
}
func NewEtcdGateway ¶
func NewEtcdGateway(app *core.Core, config *Config) (*EtcdGateway, error)
func (*EtcdGateway) Close ¶
func (gw *EtcdGateway) Close() error
type MethodDescriptor ¶
type ReflectionProxy ¶
type ReflectionProxy struct {
// contains filtered or unexported fields
}
func NewReflectionProxy ¶
func NewReflectionProxy(addr string) (*ReflectionProxy, error)
func (*ReflectionProxy) Close ¶
func (p *ReflectionProxy) Close() error
func (*ReflectionProxy) Methods ¶
func (p *ReflectionProxy) Methods() map[string]*MethodDescriptor
Methods 返回所有已注册的方法
type Route ¶
type Route struct {
ID string `json:"id"`
Method string `json:"method"`
Path string `json:"path"`
ServiceName string `json:"service_name"`
GRPCMethod string `json:"grpc_method"`
Description string `json:"description"`
Headers map[string]string `json:"headers,omitempty"`
Enabled bool `json:"enabled"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
Click to show internal directories.
Click to hide internal directories.