protother

package
v0.0.0-...-e363bdf Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ChartType_name = map[int32]string{
	0: "LINE_CHART",
	1: "PIE_CHART",
	2: "BAR_CHART",
}
View Source
var ChartType_value = map[string]int32{
	"LINE_CHART": 0,
	"PIE_CHART":  1,
	"BAR_CHART":  2,
}

Functions

func RegisterTasksServer

func RegisterTasksServer(s *grpc.Server, srv TasksServer)

Types

type ChartType

type ChartType int32
const (
	ChartType_LINE_CHART ChartType = 0
	ChartType_PIE_CHART  ChartType = 1
	ChartType_BAR_CHART  ChartType = 2
)

func (ChartType) EnumDescriptor

func (ChartType) EnumDescriptor() ([]byte, []int)

func (ChartType) String

func (x ChartType) String() string

type DailyTaskCount

type DailyTaskCount struct {
	Date                 string    `protobuf:"bytes,1,opt,name=Date,proto3" json:"Date,omitempty"`
	Count                int32     `protobuf:"varint,2,opt,name=Count,proto3" json:"Count,omitempty"`
	ChartType            ChartType `protobuf:"varint,3,opt,name=chartType,proto3,enum=protother.ChartType" json:"chartType,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*DailyTaskCount) Descriptor

func (*DailyTaskCount) Descriptor() ([]byte, []int)

func (*DailyTaskCount) GetChartType

func (m *DailyTaskCount) GetChartType() ChartType

func (*DailyTaskCount) GetCount

func (m *DailyTaskCount) GetCount() int32

func (*DailyTaskCount) GetDate

func (m *DailyTaskCount) GetDate() string

func (*DailyTaskCount) ProtoMessage

func (*DailyTaskCount) ProtoMessage()

func (*DailyTaskCount) Reset

func (m *DailyTaskCount) Reset()

func (*DailyTaskCount) String

func (m *DailyTaskCount) String() string

func (*DailyTaskCount) XXX_DiscardUnknown

func (m *DailyTaskCount) XXX_DiscardUnknown()

func (*DailyTaskCount) XXX_Marshal

func (m *DailyTaskCount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DailyTaskCount) XXX_Merge

func (m *DailyTaskCount) XXX_Merge(src proto.Message)

func (*DailyTaskCount) XXX_Size

func (m *DailyTaskCount) XXX_Size() int

func (*DailyTaskCount) XXX_Unmarshal

func (m *DailyTaskCount) XXX_Unmarshal(b []byte) error

type PingReply

type PingReply struct {
	Message              string   `protobuf:"bytes,1,opt,name=Message,proto3" json:"Message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PingReply) Descriptor

func (*PingReply) Descriptor() ([]byte, []int)

func (*PingReply) GetMessage

func (m *PingReply) GetMessage() string

func (*PingReply) ProtoMessage

func (*PingReply) ProtoMessage()

func (*PingReply) Reset

func (m *PingReply) Reset()

func (*PingReply) String

func (m *PingReply) String() string

func (*PingReply) XXX_DiscardUnknown

func (m *PingReply) XXX_DiscardUnknown()

func (*PingReply) XXX_Marshal

func (m *PingReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PingReply) XXX_Merge

func (m *PingReply) XXX_Merge(src proto.Message)

func (*PingReply) XXX_Size

func (m *PingReply) XXX_Size() int

func (*PingReply) XXX_Unmarshal

func (m *PingReply) XXX_Unmarshal(b []byte) error

type PingRequest

type PingRequest struct {
	Message              string   `protobuf:"bytes,1,opt,name=Message,proto3" json:"Message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PingRequest) Descriptor

func (*PingRequest) Descriptor() ([]byte, []int)

func (*PingRequest) GetMessage

func (m *PingRequest) GetMessage() string

func (*PingRequest) ProtoMessage

func (*PingRequest) ProtoMessage()

func (*PingRequest) Reset

func (m *PingRequest) Reset()

func (*PingRequest) String

func (m *PingRequest) String() string

func (*PingRequest) XXX_DiscardUnknown

func (m *PingRequest) XXX_DiscardUnknown()

func (*PingRequest) XXX_Marshal

func (m *PingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PingRequest) XXX_Merge

func (m *PingRequest) XXX_Merge(src proto.Message)

func (*PingRequest) XXX_Size

func (m *PingRequest) XXX_Size() int

func (*PingRequest) XXX_Unmarshal

func (m *PingRequest) XXX_Unmarshal(b []byte) error

type PlotRequest

type PlotRequest struct {
	Message              string   `protobuf:"bytes,1,opt,name=Message,proto3" json:"Message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PlotRequest) Descriptor

func (*PlotRequest) Descriptor() ([]byte, []int)

func (*PlotRequest) GetMessage

func (m *PlotRequest) GetMessage() string

func (*PlotRequest) ProtoMessage

func (*PlotRequest) ProtoMessage()

func (*PlotRequest) Reset

func (m *PlotRequest) Reset()

func (*PlotRequest) String

func (m *PlotRequest) String() string

func (*PlotRequest) XXX_DiscardUnknown

func (m *PlotRequest) XXX_DiscardUnknown()

func (*PlotRequest) XXX_Marshal

func (m *PlotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PlotRequest) XXX_Merge

func (m *PlotRequest) XXX_Merge(src proto.Message)

func (*PlotRequest) XXX_Size

func (m *PlotRequest) XXX_Size() int

func (*PlotRequest) XXX_Unmarshal

func (m *PlotRequest) XXX_Unmarshal(b []byte) error

type PointReply

type PointReply struct {
	X                    string    `protobuf:"bytes,1,opt,name=X,proto3" json:"X,omitempty"`
	Y                    int32     `protobuf:"varint,2,opt,name=Y,proto3" json:"Y,omitempty"`
	EChartType           ChartType `protobuf:"varint,3,opt,name=EChartType,proto3,enum=protother.ChartType" json:"EChartType,omitempty"`
	XLabel               string    `protobuf:"bytes,4,opt,name=XLabel,proto3" json:"XLabel,omitempty"`
	YLabel               string    `protobuf:"bytes,5,opt,name=YLabel,proto3" json:"YLabel,omitempty"`
	Title                string    `protobuf:"bytes,6,opt,name=Title,proto3" json:"Title,omitempty"`
	ColorCode            string    `protobuf:"bytes,7,opt,name=ColorCode,proto3" json:"ColorCode,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*PointReply) Descriptor

func (*PointReply) Descriptor() ([]byte, []int)

func (*PointReply) GetColorCode

func (m *PointReply) GetColorCode() string

func (*PointReply) GetEChartType

func (m *PointReply) GetEChartType() ChartType

func (*PointReply) GetTitle

func (m *PointReply) GetTitle() string

func (*PointReply) GetX

func (m *PointReply) GetX() string

func (*PointReply) GetXLabel

func (m *PointReply) GetXLabel() string

func (*PointReply) GetY

func (m *PointReply) GetY() int32

func (*PointReply) GetYLabel

func (m *PointReply) GetYLabel() string

func (*PointReply) ProtoMessage

func (*PointReply) ProtoMessage()

func (*PointReply) Reset

func (m *PointReply) Reset()

func (*PointReply) String

func (m *PointReply) String() string

func (*PointReply) XXX_DiscardUnknown

func (m *PointReply) XXX_DiscardUnknown()

func (*PointReply) XXX_Marshal

func (m *PointReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PointReply) XXX_Merge

func (m *PointReply) XXX_Merge(src proto.Message)

func (*PointReply) XXX_Size

func (m *PointReply) XXX_Size() int

func (*PointReply) XXX_Unmarshal

func (m *PointReply) XXX_Unmarshal(b []byte) error

type ProjectTaskCount

type ProjectTaskCount struct {
	Project              string    `protobuf:"bytes,1,opt,name=Project,proto3" json:"Project,omitempty"`
	Count                int32     `protobuf:"varint,2,opt,name=Count,proto3" json:"Count,omitempty"`
	ChartType            ChartType `protobuf:"varint,3,opt,name=chartType,proto3,enum=protother.ChartType" json:"chartType,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*ProjectTaskCount) Descriptor

func (*ProjectTaskCount) Descriptor() ([]byte, []int)

func (*ProjectTaskCount) GetChartType

func (m *ProjectTaskCount) GetChartType() ChartType

func (*ProjectTaskCount) GetCount

func (m *ProjectTaskCount) GetCount() int32

func (*ProjectTaskCount) GetProject

func (m *ProjectTaskCount) GetProject() string

func (*ProjectTaskCount) ProtoMessage

func (*ProjectTaskCount) ProtoMessage()

func (*ProjectTaskCount) Reset

func (m *ProjectTaskCount) Reset()

func (*ProjectTaskCount) String

func (m *ProjectTaskCount) String() string

func (*ProjectTaskCount) XXX_DiscardUnknown

func (m *ProjectTaskCount) XXX_DiscardUnknown()

func (*ProjectTaskCount) XXX_Marshal

func (m *ProjectTaskCount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProjectTaskCount) XXX_Merge

func (m *ProjectTaskCount) XXX_Merge(src proto.Message)

func (*ProjectTaskCount) XXX_Size

func (m *ProjectTaskCount) XXX_Size() int

func (*ProjectTaskCount) XXX_Unmarshal

func (m *ProjectTaskCount) XXX_Unmarshal(b []byte) error

type TaskRequest

type TaskRequest struct {
	Message              string   `protobuf:"bytes,1,opt,name=Message,proto3" json:"Message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TaskRequest) Descriptor

func (*TaskRequest) Descriptor() ([]byte, []int)

func (*TaskRequest) GetMessage

func (m *TaskRequest) GetMessage() string

func (*TaskRequest) ProtoMessage

func (*TaskRequest) ProtoMessage()

func (*TaskRequest) Reset

func (m *TaskRequest) Reset()

func (*TaskRequest) String

func (m *TaskRequest) String() string

func (*TaskRequest) XXX_DiscardUnknown

func (m *TaskRequest) XXX_DiscardUnknown()

func (*TaskRequest) XXX_Marshal

func (m *TaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TaskRequest) XXX_Merge

func (m *TaskRequest) XXX_Merge(src proto.Message)

func (*TaskRequest) XXX_Size

func (m *TaskRequest) XXX_Size() int

func (*TaskRequest) XXX_Unmarshal

func (m *TaskRequest) XXX_Unmarshal(b []byte) error

type TasksClient

type TasksClient interface {
	GetTasks(ctx context.Context, in *TaskRequest, opts ...grpc.CallOption) (Tasks_GetTasksClient, error)
	GetDailyTaskCount(ctx context.Context, in *TaskRequest, opts ...grpc.CallOption) (Tasks_GetDailyTaskCountClient, error)
	GetProjectTaskCount(ctx context.Context, in *TaskRequest, opts ...grpc.CallOption) (Tasks_GetProjectTaskCountClient, error)
	GetPlot(ctx context.Context, in *PlotRequest, opts ...grpc.CallOption) (Tasks_GetPlotClient, error)
	Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingReply, error)
}

TasksClient is the client API for Tasks service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewTasksClient

func NewTasksClient(cc grpc.ClientConnInterface) TasksClient

type TasksServer

TasksServer is the server API for Tasks service.

type Tasks_GetDailyTaskCountClient

type Tasks_GetDailyTaskCountClient interface {
	Recv() (*DailyTaskCount, error)
	grpc.ClientStream
}

type Tasks_GetDailyTaskCountServer

type Tasks_GetDailyTaskCountServer interface {
	Send(*DailyTaskCount) error
	grpc.ServerStream
}

type Tasks_GetPlotClient

type Tasks_GetPlotClient interface {
	Recv() (*PointReply, error)
	grpc.ClientStream
}

type Tasks_GetPlotServer

type Tasks_GetPlotServer interface {
	Send(*PointReply) error
	grpc.ServerStream
}

type Tasks_GetProjectTaskCountClient

type Tasks_GetProjectTaskCountClient interface {
	Recv() (*ProjectTaskCount, error)
	grpc.ClientStream
}

type Tasks_GetProjectTaskCountServer

type Tasks_GetProjectTaskCountServer interface {
	Send(*ProjectTaskCount) error
	grpc.ServerStream
}

type Tasks_GetTasksClient

type Tasks_GetTasksClient interface {
	Recv() (*UTask, error)
	grpc.ClientStream
}

type Tasks_GetTasksServer

type Tasks_GetTasksServer interface {
	Send(*UTask) error
	grpc.ServerStream
}

type UTask

type UTask struct {
	TaskMane             string   `protobuf:"bytes,1,opt,name=TaskMane,proto3" json:"TaskMane,omitempty"`
	Project              string   `protobuf:"bytes,2,opt,name=Project,proto3" json:"Project,omitempty"`
	Date                 string   `protobuf:"bytes,3,opt,name=Date,proto3" json:"Date,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UTask) Descriptor

func (*UTask) Descriptor() ([]byte, []int)

func (*UTask) GetDate

func (m *UTask) GetDate() string

func (*UTask) GetProject

func (m *UTask) GetProject() string

func (*UTask) GetTaskMane

func (m *UTask) GetTaskMane() string

func (*UTask) ProtoMessage

func (*UTask) ProtoMessage()

func (*UTask) Reset

func (m *UTask) Reset()

func (*UTask) String

func (m *UTask) String() string

func (*UTask) XXX_DiscardUnknown

func (m *UTask) XXX_DiscardUnknown()

func (*UTask) XXX_Marshal

func (m *UTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UTask) XXX_Merge

func (m *UTask) XXX_Merge(src proto.Message)

func (*UTask) XXX_Size

func (m *UTask) XXX_Size() int

func (*UTask) XXX_Unmarshal

func (m *UTask) XXX_Unmarshal(b []byte) error

type UnimplementedTasksServer

type UnimplementedTasksServer struct {
}

UnimplementedTasksServer can be embedded to have forward compatible implementations.

func (*UnimplementedTasksServer) GetDailyTaskCount

func (*UnimplementedTasksServer) GetPlot

func (*UnimplementedTasksServer) GetProjectTaskCount

func (*UnimplementedTasksServer) GetTasks

func (*UnimplementedTasksServer) Ping

Jump to

Keyboard shortcuts

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