Documentation ¶
Overview ¶
Package timedot is a generated protocol buffer package.
It is generated from these files:
ts.proto
It has these top-level messages:
Timedot TimedotSave TimedotDelete Record
Index ¶
- func RegisterTimeFSServer(s *grpc.Server, srv TimeFSServer)
- type Record
- type TimeFSClient
- type TimeFSServer
- type TimeFS_ReadTimedotClient
- type TimeFS_ReadTimedotServer
- type Timedot
- func (*Timedot) Descriptor() ([]byte, []int)
- func (m *Timedot) GetDate() int32
- func (m *Timedot) GetHour() int32
- func (m *Timedot) GetMicrosecond() int32
- func (m *Timedot) GetMinute() int32
- func (m *Timedot) GetMonth() int32
- func (m *Timedot) GetSecond() int32
- func (m *Timedot) GetYear() int32
- func (*Timedot) ProtoMessage()
- func (m *Timedot) Reset()
- func (m *Timedot) String() string
- type TimedotDelete
- type TimedotSave
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterTimeFSServer ¶
func RegisterTimeFSServer(s *grpc.Server, srv TimeFSServer)
Types ¶
type Record ¶
type Record struct { TopicKey string `protobuf:"bytes,1,opt,name=topicKey" json:"topicKey,omitempty"` TopicId string `protobuf:"bytes,2,opt,name=topicId" json:"topicId,omitempty"` Time []*Timedot `protobuf:"bytes,3,rep,name=Time,json=time" json:"Time,omitempty"` Value string `protobuf:"bytes,4,opt,name=value" json:"value,omitempty"` }
func (*Record) Descriptor ¶
func (*Record) GetTopicId ¶
func (*Record) GetTopicKey ¶
func (*Record) ProtoMessage ¶
func (*Record) ProtoMessage()
type TimeFSClient ¶
type TimeFSClient interface { CreateTimedot(ctx context.Context, in *Record, opts ...grpc.CallOption) (*TimedotSave, error) ReadTimedot(ctx context.Context, in *Record, opts ...grpc.CallOption) (TimeFS_ReadTimedotClient, error) DeleteTimedot(ctx context.Context, in *Record, opts ...grpc.CallOption) (*TimedotDelete, error) }
func NewTimeFSClient ¶
func NewTimeFSClient(cc *grpc.ClientConn) TimeFSClient
type TimeFSServer ¶
type TimeFSServer interface { CreateTimedot(context.Context, *Record) (*TimedotSave, error) ReadTimedot(*Record, TimeFS_ReadTimedotServer) error DeleteTimedot(context.Context, *Record) (*TimedotDelete, error) }
type TimeFS_ReadTimedotClient ¶
type TimeFS_ReadTimedotClient interface { Recv() (*Record, error) grpc.ClientStream }
type TimeFS_ReadTimedotServer ¶
type TimeFS_ReadTimedotServer interface { Send(*Record) error grpc.ServerStream }
type Timedot ¶
type Timedot struct { Year int32 `protobuf:"varint,1,opt,name=year" json:"year,omitempty"` Month int32 `protobuf:"varint,2,opt,name=month" json:"month,omitempty"` Date int32 `protobuf:"varint,3,opt,name=date" json:"date,omitempty"` Hour int32 `protobuf:"varint,4,opt,name=hour" json:"hour,omitempty"` Minute int32 `protobuf:"varint,5,opt,name=minute" json:"minute,omitempty"` Second int32 `protobuf:"varint,6,opt,name=second" json:"second,omitempty"` Microsecond int32 `protobuf:"varint,7,opt,name=microsecond" json:"microsecond,omitempty"` }
func (*Timedot) Descriptor ¶
func (*Timedot) GetMicrosecond ¶
func (*Timedot) ProtoMessage ¶
func (*Timedot) ProtoMessage()
type TimedotDelete ¶
type TimedotDelete struct { Success bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"` Count uint64 `protobuf:"varint,2,opt,name=count" json:"count,omitempty"` }
func (*TimedotDelete) Descriptor ¶
func (*TimedotDelete) Descriptor() ([]byte, []int)
func (*TimedotDelete) GetCount ¶
func (m *TimedotDelete) GetCount() uint64
func (*TimedotDelete) GetSuccess ¶
func (m *TimedotDelete) GetSuccess() bool
func (*TimedotDelete) ProtoMessage ¶
func (*TimedotDelete) ProtoMessage()
func (*TimedotDelete) Reset ¶
func (m *TimedotDelete) Reset()
func (*TimedotDelete) String ¶
func (m *TimedotDelete) String() string
type TimedotSave ¶
type TimedotSave struct {
Success bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
}
func (*TimedotSave) Descriptor ¶
func (*TimedotSave) Descriptor() ([]byte, []int)
func (*TimedotSave) GetSuccess ¶
func (m *TimedotSave) GetSuccess() bool
func (*TimedotSave) ProtoMessage ¶
func (*TimedotSave) ProtoMessage()
func (*TimedotSave) Reset ¶
func (m *TimedotSave) Reset()
func (*TimedotSave) String ¶
func (m *TimedotSave) String() string
Click to show internal directories.
Click to hide internal directories.