Documentation ¶
Index ¶
- Variables
- func DateToDateString(date *Date) string
- func DateToTime(date *Date) time.Time
- func TimeToProtoTimestamp(t time.Time) *timestamppb.Timestamp
- type Date
- type Request
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetData() []byte
- func (x *Response) GetError() string
- func (x *Response) GetTask() string
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_foreverbull_common_proto protoreflect.FileDescriptor
Functions ¶
func DateToDateString ¶
func DateToTime ¶
func TimeToProtoTimestamp ¶
func TimeToProtoTimestamp(t time.Time) *timestamppb.Timestamp
Types ¶
type Date ¶
type Date struct { Year int32 `protobuf:"varint,1,opt,name=year,proto3" json:"year,omitempty"` Month int32 `protobuf:"varint,2,opt,name=month,proto3" json:"month,omitempty"` Day int32 `protobuf:"varint,3,opt,name=day,proto3" json:"day,omitempty"` // contains filtered or unexported fields }
func DateStringToDate ¶
func GoTimeToDate ¶
func (*Date) Descriptor
deprecated
func (*Date) ProtoMessage ¶
func (*Date) ProtoMessage()
func (*Date) ProtoReflect ¶
func (x *Date) ProtoReflect() protoreflect.Message
type Request ¶
type Request struct { Task string `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3,oneof" json:"data,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 { Task string `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3,oneof" json:"data,omitempty"` Error *string `protobuf:"bytes,3,opt,name=error,proto3,oneof" json:"error,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.