Documentation ¶
Index ¶
- Variables
- func GetGrpcResponseStatusCode(response IResponse) string
- type ClientDetectionResponse
- type ConfigChangeBatchListenResponse
- type ConfigPublishResponse
- type ConfigQueryResponse
- type ConfigRemoveResponse
- type ConnectResetResponse
- type ErrorResponse
- type HealthCheckResponse
- type IResponse
- type InstanceResponse
- type MockResponse
- type NotifySubscriberResponse
- type QueryServiceResponse
- type Response
- type ServerCheckResponse
- type ServiceListResponse
- type SubscribeServiceResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var ClientResponseMapping map[string]func() IResponse
Functions ¶
func GetGrpcResponseStatusCode ¶ added in v2.0.1
get grpc response status code with NA default.
Types ¶
type ClientDetectionResponse ¶
type ClientDetectionResponse struct {
*Response
}
func (*ClientDetectionResponse) GetResponseType ¶
func (c *ClientDetectionResponse) GetResponseType() string
type ConfigChangeBatchListenResponse ¶
type ConfigChangeBatchListenResponse struct { *Response ChangedConfigs []model.ConfigContext `json:"changedConfigs"` }
func (*ConfigChangeBatchListenResponse) GetResponseType ¶
func (c *ConfigChangeBatchListenResponse) GetResponseType() string
type ConfigPublishResponse ¶
type ConfigPublishResponse struct {
*Response
}
func (*ConfigPublishResponse) GetResponseType ¶
func (c *ConfigPublishResponse) GetResponseType() string
type ConfigQueryResponse ¶
type ConfigQueryResponse struct { *Response Content string `json:"content"` EncryptedDataKey string `json:"encryptedDataKey"` ContentType string `json:"contentType"` Md5 string `json:"md5"` LastModified int64 `json:"lastModified"` IsBeta bool `json:"isBeta"` Tag bool `json:"tag"` }
func (*ConfigQueryResponse) GetResponseType ¶
func (c *ConfigQueryResponse) GetResponseType() string
type ConfigRemoveResponse ¶
type ConfigRemoveResponse struct {
*Response
}
func (*ConfigRemoveResponse) GetResponseType ¶
func (c *ConfigRemoveResponse) GetResponseType() string
type ConnectResetResponse ¶
type ConnectResetResponse struct {
*Response
}
func (*ConnectResetResponse) GetResponseType ¶
func (c *ConnectResetResponse) GetResponseType() string
type ErrorResponse ¶
type ErrorResponse struct {
*Response
}
func (*ErrorResponse) GetResponseType ¶
func (c *ErrorResponse) GetResponseType() string
type HealthCheckResponse ¶
type HealthCheckResponse struct {
*Response
}
func (*HealthCheckResponse) GetResponseType ¶
func (c *HealthCheckResponse) GetResponseType() string
type InstanceResponse ¶
type InstanceResponse struct {
*Response
}
func (*InstanceResponse) GetResponseType ¶
func (c *InstanceResponse) GetResponseType() string
type MockResponse ¶
type MockResponse struct {
*Response
}
func (*MockResponse) GetResponseType ¶
func (c *MockResponse) GetResponseType() string
type NotifySubscriberResponse ¶
type NotifySubscriberResponse struct {
*Response
}
func (*NotifySubscriberResponse) GetResponseType ¶
func (c *NotifySubscriberResponse) GetResponseType() string
type QueryServiceResponse ¶
func (*QueryServiceResponse) GetResponseType ¶
func (c *QueryServiceResponse) GetResponseType() string
type Response ¶
type Response struct { ResultCode int `json:"resultCode"` ErrorCode int `json:"errorCode"` Success bool `json:"success"` Message string `json:"message"` RequestId string `json:"requestId"` }
func (*Response) GetErrorCode ¶
func (*Response) GetMessage ¶
func (*Response) GetResultCode ¶
func (*Response) SetRequestId ¶
type ServerCheckResponse ¶
func (*ServerCheckResponse) GetResponseType ¶
func (c *ServerCheckResponse) GetResponseType() string
type ServiceListResponse ¶
type ServiceListResponse struct { *Response Count int `json:"count"` ServiceNames []string `json:"serviceNames"` }
func (*ServiceListResponse) GetResponseType ¶
func (c *ServiceListResponse) GetResponseType() string
type SubscribeServiceResponse ¶
func (*SubscribeServiceResponse) GetResponseType ¶
func (c *SubscribeServiceResponse) GetResponseType() string
Click to show internal directories.
Click to hide internal directories.