Documentation ¶
Index ¶
- Variables
- func RegisterServiceServer(s *grpc.Server, srv ServiceServer)
- func RegisterUpdateServiceServer(s *grpc.Server, srv UpdateServiceServer)
- type Request
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetCode() Response_Code
- func (x *Response) GetEndTime() string
- func (x *Response) GetPlanName() string
- func (x *Response) GetStartTime() string
- func (x *Response) GetStatus() Response_Status
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
- type Response_Code
- func (Response_Code) Descriptor() protoreflect.EnumDescriptor
- func (x Response_Code) Enum() *Response_Code
- func (Response_Code) EnumDescriptor() ([]byte, []int)deprecated
- func (x Response_Code) Number() protoreflect.EnumNumber
- func (x Response_Code) String() string
- func (Response_Code) Type() protoreflect.EnumType
- type Response_Status
- func (Response_Status) Descriptor() protoreflect.EnumDescriptor
- func (x Response_Status) Enum() *Response_Status
- func (Response_Status) EnumDescriptor() ([]byte, []int)deprecated
- func (x Response_Status) Number() protoreflect.EnumNumber
- func (x Response_Status) String() string
- func (Response_Status) Type() protoreflect.EnumType
- type ServiceClient
- type ServiceServer
- type UnimplementedServiceServer
- type UnimplementedUpdateServiceServer
- type UpdateServiceClient
- type UpdateServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( Response_Status_name = map[int32]string{ 0: "start", 1: "end", 3: "Expires", 4: "Deleted", } Response_Status_value = map[string]int32{ "start": 0, "end": 1, "Expires": 3, "Deleted": 4, } )
Enum value maps for Response_Status.
var ( Response_Code_name = map[int32]string{ 0: "failed", 1: "success", } Response_Code_value = map[string]int32{ "failed": 0, "success": 1, } )
Enum value maps for Response_Code.
var File_proto_plan_plan_proto protoreflect.FileDescriptor
Functions ¶
func RegisterServiceServer ¶
func RegisterServiceServer(s *grpc.Server, srv ServiceServer)
func RegisterUpdateServiceServer ¶
func RegisterUpdateServiceServer(s *grpc.Server, srv UpdateServiceServer)
Types ¶
type Request ¶
type Request struct { PlanID string `protobuf:"bytes,1,opt,name=planID,proto3" json:"planID,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { PlanName string `protobuf:"bytes,1,opt,name=planName,proto3" json:"planName,omitempty"` StartTime string `protobuf:"bytes,2,opt,name=startTime,proto3" json:"startTime,omitempty"` EndTime string `protobuf:"bytes,3,opt,name=EndTime,proto3" json:"EndTime,omitempty"` Status Response_Status `protobuf:"varint,4,opt,name=status,proto3,enum=plan.Response_Status" json:"status,omitempty"` Code Response_Code `protobuf:"varint,5,opt,name=code,proto3,enum=plan.Response_Code" json:"code,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) GetCode ¶
func (x *Response) GetCode() Response_Code
func (*Response) GetEndTime ¶
func (*Response) GetPlanName ¶
func (*Response) GetStartTime ¶
func (*Response) GetStatus ¶
func (x *Response) GetStatus() Response_Status
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type Response_Code ¶
type Response_Code int32
const ( Response_failed Response_Code = 0 Response_success Response_Code = 1 )
func (Response_Code) Descriptor ¶
func (Response_Code) Descriptor() protoreflect.EnumDescriptor
func (Response_Code) Enum ¶
func (x Response_Code) Enum() *Response_Code
func (Response_Code) EnumDescriptor
deprecated
func (Response_Code) EnumDescriptor() ([]byte, []int)
Deprecated: Use Response_Code.Descriptor instead.
func (Response_Code) Number ¶
func (x Response_Code) Number() protoreflect.EnumNumber
func (Response_Code) String ¶
func (x Response_Code) String() string
func (Response_Code) Type ¶
func (Response_Code) Type() protoreflect.EnumType
type Response_Status ¶
type Response_Status int32
const ( Response_start Response_Status = 0 Response_end Response_Status = 1 Response_Expires Response_Status = 3 Response_Deleted Response_Status = 4 )
func (Response_Status) Descriptor ¶
func (Response_Status) Descriptor() protoreflect.EnumDescriptor
func (Response_Status) Enum ¶
func (x Response_Status) Enum() *Response_Status
func (Response_Status) EnumDescriptor
deprecated
func (Response_Status) EnumDescriptor() ([]byte, []int)
Deprecated: Use Response_Status.Descriptor instead.
func (Response_Status) Number ¶
func (x Response_Status) Number() protoreflect.EnumNumber
func (Response_Status) String ¶
func (x Response_Status) String() string
func (Response_Status) Type ¶
func (Response_Status) Type() protoreflect.EnumType
type ServiceClient ¶
type ServiceClient interface { Search(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) Delete(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) }
ServiceClient is the client API for Service service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewServiceClient ¶
func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient
type ServiceServer ¶
type ServiceServer interface { Search(context.Context, *Request) (*Response, error) Delete(context.Context, *Request) (*Response, error) }
ServiceServer is the server API for Service service.
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct { }
UnimplementedServiceServer can be embedded to have forward compatible implementations.
type UnimplementedUpdateServiceServer ¶
type UnimplementedUpdateServiceServer struct { }
UnimplementedUpdateServiceServer can be embedded to have forward compatible implementations.
type UpdateServiceClient ¶
type UpdateServiceClient interface {
Update(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}
UpdateServiceClient is the client API for UpdateService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewUpdateServiceClient ¶
func NewUpdateServiceClient(cc grpc.ClientConnInterface) UpdateServiceClient