Documentation ¶
Index ¶
- Constants
- type Heartbeat
- type Message
- type MetaGetRequest
- type MetaLog
- type MetaOpRequest
- type MetaSetRequest
- type MethodInfo
- type MethodInfos
- type Request
- type RequestHeader
- type Response
- type ResponseHeader
- type ServiceInfo
- type ServiceMetaResponse
- type ServiceState
- type Settings
- type Status
- type UsvcState
- type Version
Constants ¶
View Source
const ( ServiceState_INITIALIZING = 1 ServiceState_ABORTING = 2 ServiceState_STARTING = 3 ServiceState_STOPPING = 5 ServiceState_PAUSING = 6 ServiceState_RUNNING = 7 ServiceState_STOPPED = 8 ServiceState_ABORTED = 9 ServiceState_PAUSED = 10 ServiceState_IDLE = 11 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetaGetRequest ¶
type MetaGetRequest struct {
Name string `json:"name"`
}
type MetaOpRequest ¶
type MetaOpRequest struct {
Operation string `json:"operation"`
}
type MetaSetRequest ¶
type MethodInfo ¶
type MethodInfo struct {
Name string `json:"name"`
}
type MethodInfos ¶
type MethodInfos []*MethodInfo
type Request ¶
type Request struct { Header RequestHeader `json:"header"` Payload string `json:"payload"` }
type RequestHeader ¶
type Response ¶
type Response struct { Header ResponseHeader `json:"header"` Payload string `json:"payload"` }
type ResponseHeader ¶
type ServiceInfo ¶
type ServiceInfo struct { Name string `json:"name"` Description string `json:"description"` MethodInfos MethodInfos `json:"methods"` State ServiceState `json:"state"` }
type ServiceMetaResponse ¶
type ServiceMetaResponse struct { ServiceInfos []*ServiceInfo `json:"infos"` State ServiceState `json:"state"` }
type ServiceState ¶
type ServiceState uint
Click to show internal directories.
Click to hide internal directories.