Documentation ¶
Index ¶
- func RegisterService(s giraffe_micro.Server, srv Service)
- type Client
- type ListRequest
- func (*ListRequest) Descriptor() ([]byte, []int)
- func (m *ListRequest) GetClusterId() string
- func (*ListRequest) ProtoMessage()
- func (m *ListRequest) Reset()
- func (m *ListRequest) String() string
- func (this *ListRequest) Validate() error
- func (m *ListRequest) XXX_DiscardUnknown()
- func (m *ListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListRequest) XXX_Merge(src proto.Message)
- func (m *ListRequest) XXX_Size() int
- func (m *ListRequest) XXX_Unmarshal(b []byte) error
- type ListResponse
- func (*ListResponse) Descriptor() ([]byte, []int)
- func (m *ListResponse) GetList() []*container.NodeDetail
- func (*ListResponse) ProtoMessage()
- func (m *ListResponse) Reset()
- func (m *ListResponse) String() string
- func (this *ListResponse) Validate() error
- func (m *ListResponse) XXX_DiscardUnknown()
- func (m *ListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListResponse) XXX_Merge(src proto.Message)
- func (m *ListResponse) XXX_Size() int
- func (m *ListResponse) XXX_Unmarshal(b []byte) error
- type ListResponseWrapper
- func (*ListResponseWrapper) Descriptor() ([]byte, []int)
- func (m *ListResponseWrapper) GetCode() int32
- func (m *ListResponseWrapper) GetCodeExplain() string
- func (m *ListResponseWrapper) GetData() *ListResponse
- func (m *ListResponseWrapper) GetError() string
- func (*ListResponseWrapper) ProtoMessage()
- func (m *ListResponseWrapper) Reset()
- func (m *ListResponseWrapper) String() string
- func (this *ListResponseWrapper) Validate() error
- func (m *ListResponseWrapper) XXX_DiscardUnknown()
- func (m *ListResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListResponseWrapper) XXX_Merge(src proto.Message)
- func (m *ListResponseWrapper) XXX_Size() int
- func (m *ListResponseWrapper) XXX_Unmarshal(b []byte) error
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterService ¶
func RegisterService(s giraffe_micro.Server, srv Service)
Types ¶
type Client ¶
type Client interface {
List(ctx context.Context, in *ListRequest) (*ListResponse, error)
}
Client is the client API for node service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewClient ¶
func NewClient(c giraffe_micro.Client) Client
type ListRequest ¶
type ListRequest struct { // //k8s 集群 id ClusterId string `protobuf:"bytes,1,opt,name=clusterId,proto3" json:"clusterId" form:"clusterId"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
List请求
func (*ListRequest) Descriptor ¶
func (*ListRequest) Descriptor() ([]byte, []int)
func (*ListRequest) GetClusterId ¶
func (m *ListRequest) GetClusterId() string
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) Reset ¶
func (m *ListRequest) Reset()
func (*ListRequest) String ¶
func (m *ListRequest) String() string
func (*ListRequest) Validate ¶
func (this *ListRequest) Validate() error
func (*ListRequest) XXX_DiscardUnknown ¶
func (m *ListRequest) XXX_DiscardUnknown()
func (*ListRequest) XXX_Marshal ¶
func (m *ListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListRequest) XXX_Merge ¶
func (m *ListRequest) XXX_Merge(src proto.Message)
func (*ListRequest) XXX_Size ¶
func (m *ListRequest) XXX_Size() int
func (*ListRequest) XXX_Unmarshal ¶
func (m *ListRequest) XXX_Unmarshal(b []byte) error
type ListResponse ¶
type ListResponse struct { // //node list List []*container.NodeDetail `protobuf:"bytes,1,rep,name=list,proto3" json:"list" form:"list"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
List返回
func (*ListResponse) Descriptor ¶
func (*ListResponse) Descriptor() ([]byte, []int)
func (*ListResponse) GetList ¶
func (m *ListResponse) GetList() []*container.NodeDetail
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) Reset ¶
func (m *ListResponse) Reset()
func (*ListResponse) String ¶
func (m *ListResponse) String() string
func (*ListResponse) Validate ¶
func (this *ListResponse) Validate() error
func (*ListResponse) XXX_DiscardUnknown ¶
func (m *ListResponse) XXX_DiscardUnknown()
func (*ListResponse) XXX_Marshal ¶
func (m *ListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListResponse) XXX_Merge ¶
func (m *ListResponse) XXX_Merge(src proto.Message)
func (*ListResponse) XXX_Size ¶
func (m *ListResponse) XXX_Size() int
func (*ListResponse) XXX_Unmarshal ¶
func (m *ListResponse) XXX_Unmarshal(b []byte) error
type ListResponseWrapper ¶
type ListResponseWrapper struct { // //返回码 Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"` // //返回码解释 CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"` // //错误详情 Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"` // //返回数据 Data *ListResponse `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ListApi返回
func (*ListResponseWrapper) Descriptor ¶
func (*ListResponseWrapper) Descriptor() ([]byte, []int)
func (*ListResponseWrapper) GetCode ¶
func (m *ListResponseWrapper) GetCode() int32
func (*ListResponseWrapper) GetCodeExplain ¶
func (m *ListResponseWrapper) GetCodeExplain() string
func (*ListResponseWrapper) GetData ¶
func (m *ListResponseWrapper) GetData() *ListResponse
func (*ListResponseWrapper) GetError ¶
func (m *ListResponseWrapper) GetError() string
func (*ListResponseWrapper) ProtoMessage ¶
func (*ListResponseWrapper) ProtoMessage()
func (*ListResponseWrapper) Reset ¶
func (m *ListResponseWrapper) Reset()
func (*ListResponseWrapper) String ¶
func (m *ListResponseWrapper) String() string
func (*ListResponseWrapper) Validate ¶
func (this *ListResponseWrapper) Validate() error
func (*ListResponseWrapper) XXX_DiscardUnknown ¶
func (m *ListResponseWrapper) XXX_DiscardUnknown()
func (*ListResponseWrapper) XXX_Marshal ¶
func (m *ListResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListResponseWrapper) XXX_Merge ¶
func (m *ListResponseWrapper) XXX_Merge(src proto.Message)
func (*ListResponseWrapper) XXX_Size ¶
func (m *ListResponseWrapper) XXX_Size() int
func (*ListResponseWrapper) XXX_Unmarshal ¶
func (m *ListResponseWrapper) XXX_Unmarshal(b []byte) error
type Service ¶
type Service interface {
List(context.Context, *ListRequest) (*ListResponse, error)
}
Service is the server API for node service.
Click to show internal directories.
Click to hide internal directories.