timedot

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2019 License: MIT Imports: 5 Imported by: 0

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

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) Descriptor() ([]byte, []int)

func (*Record) GetTime

func (m *Record) GetTime() []*Timedot

func (*Record) GetTopicId

func (m *Record) GetTopicId() string

func (*Record) GetTopicKey

func (m *Record) GetTopicKey() string

func (*Record) GetValue

func (m *Record) GetValue() string

func (*Record) ProtoMessage

func (*Record) ProtoMessage()

func (*Record) Reset

func (m *Record) Reset()

func (*Record) String

func (m *Record) String() string

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) Descriptor() ([]byte, []int)

func (*Timedot) GetDate

func (m *Timedot) GetDate() int32

func (*Timedot) GetHour

func (m *Timedot) GetHour() int32

func (*Timedot) GetMicrosecond

func (m *Timedot) GetMicrosecond() int32

func (*Timedot) GetMinute

func (m *Timedot) GetMinute() int32

func (*Timedot) GetMonth

func (m *Timedot) GetMonth() int32

func (*Timedot) GetSecond

func (m *Timedot) GetSecond() int32

func (*Timedot) GetYear

func (m *Timedot) GetYear() int32

func (*Timedot) ProtoMessage

func (*Timedot) ProtoMessage()

func (*Timedot) Reset

func (m *Timedot) Reset()

func (*Timedot) String

func (m *Timedot) String() string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL