Documentation
¶
Index ¶
- Variables
- func RegisterTasksServer(s *grpc.Server, srv TasksServer)
- type ChartType
- type DailyTaskCount
- func (*DailyTaskCount) Descriptor() ([]byte, []int)
- func (m *DailyTaskCount) GetChartType() ChartType
- func (m *DailyTaskCount) GetCount() int32
- func (m *DailyTaskCount) GetDate() string
- func (*DailyTaskCount) ProtoMessage()
- func (m *DailyTaskCount) Reset()
- func (m *DailyTaskCount) String() string
- func (m *DailyTaskCount) XXX_DiscardUnknown()
- func (m *DailyTaskCount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DailyTaskCount) XXX_Merge(src proto.Message)
- func (m *DailyTaskCount) XXX_Size() int
- func (m *DailyTaskCount) XXX_Unmarshal(b []byte) error
- type PingReply
- func (*PingReply) Descriptor() ([]byte, []int)
- func (m *PingReply) GetMessage() string
- func (*PingReply) ProtoMessage()
- func (m *PingReply) Reset()
- func (m *PingReply) String() string
- func (m *PingReply) XXX_DiscardUnknown()
- func (m *PingReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PingReply) XXX_Merge(src proto.Message)
- func (m *PingReply) XXX_Size() int
- func (m *PingReply) XXX_Unmarshal(b []byte) error
- type PingRequest
- func (*PingRequest) Descriptor() ([]byte, []int)
- func (m *PingRequest) GetMessage() string
- func (*PingRequest) ProtoMessage()
- func (m *PingRequest) Reset()
- func (m *PingRequest) String() string
- func (m *PingRequest) XXX_DiscardUnknown()
- func (m *PingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PingRequest) XXX_Merge(src proto.Message)
- func (m *PingRequest) XXX_Size() int
- func (m *PingRequest) XXX_Unmarshal(b []byte) error
- type PlotRequest
- func (*PlotRequest) Descriptor() ([]byte, []int)
- func (m *PlotRequest) GetMessage() string
- func (*PlotRequest) ProtoMessage()
- func (m *PlotRequest) Reset()
- func (m *PlotRequest) String() string
- func (m *PlotRequest) XXX_DiscardUnknown()
- func (m *PlotRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PlotRequest) XXX_Merge(src proto.Message)
- func (m *PlotRequest) XXX_Size() int
- func (m *PlotRequest) XXX_Unmarshal(b []byte) error
- type PointReply
- func (*PointReply) Descriptor() ([]byte, []int)
- func (m *PointReply) GetColorCode() string
- func (m *PointReply) GetEChartType() ChartType
- func (m *PointReply) GetTitle() string
- func (m *PointReply) GetX() string
- func (m *PointReply) GetXLabel() string
- func (m *PointReply) GetY() int32
- func (m *PointReply) GetYLabel() string
- func (*PointReply) ProtoMessage()
- func (m *PointReply) Reset()
- func (m *PointReply) String() string
- func (m *PointReply) XXX_DiscardUnknown()
- func (m *PointReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PointReply) XXX_Merge(src proto.Message)
- func (m *PointReply) XXX_Size() int
- func (m *PointReply) XXX_Unmarshal(b []byte) error
- type ProjectTaskCount
- func (*ProjectTaskCount) Descriptor() ([]byte, []int)
- func (m *ProjectTaskCount) GetChartType() ChartType
- func (m *ProjectTaskCount) GetCount() int32
- func (m *ProjectTaskCount) GetProject() string
- func (*ProjectTaskCount) ProtoMessage()
- func (m *ProjectTaskCount) Reset()
- func (m *ProjectTaskCount) String() string
- func (m *ProjectTaskCount) XXX_DiscardUnknown()
- func (m *ProjectTaskCount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProjectTaskCount) XXX_Merge(src proto.Message)
- func (m *ProjectTaskCount) XXX_Size() int
- func (m *ProjectTaskCount) XXX_Unmarshal(b []byte) error
- type TaskRequest
- func (*TaskRequest) Descriptor() ([]byte, []int)
- func (m *TaskRequest) GetMessage() string
- func (*TaskRequest) ProtoMessage()
- func (m *TaskRequest) Reset()
- func (m *TaskRequest) String() string
- func (m *TaskRequest) XXX_DiscardUnknown()
- func (m *TaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TaskRequest) XXX_Merge(src proto.Message)
- func (m *TaskRequest) XXX_Size() int
- func (m *TaskRequest) XXX_Unmarshal(b []byte) error
- type TasksClient
- type TasksServer
- type Tasks_GetDailyTaskCountClient
- type Tasks_GetDailyTaskCountServer
- type Tasks_GetPlotClient
- type Tasks_GetPlotServer
- type Tasks_GetProjectTaskCountClient
- type Tasks_GetProjectTaskCountServer
- type Tasks_GetTasksClient
- type Tasks_GetTasksServer
- type UTask
- func (*UTask) Descriptor() ([]byte, []int)
- func (m *UTask) GetDate() string
- func (m *UTask) GetProject() string
- func (m *UTask) GetTaskMane() string
- func (*UTask) ProtoMessage()
- func (m *UTask) Reset()
- func (m *UTask) String() string
- func (m *UTask) XXX_DiscardUnknown()
- func (m *UTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UTask) XXX_Merge(src proto.Message)
- func (m *UTask) XXX_Size() int
- func (m *UTask) XXX_Unmarshal(b []byte) error
- type UnimplementedTasksServer
- func (*UnimplementedTasksServer) GetDailyTaskCount(req *TaskRequest, srv Tasks_GetDailyTaskCountServer) error
- func (*UnimplementedTasksServer) GetPlot(req *PlotRequest, srv Tasks_GetPlotServer) error
- func (*UnimplementedTasksServer) GetProjectTaskCount(req *TaskRequest, srv Tasks_GetProjectTaskCountServer) error
- func (*UnimplementedTasksServer) GetTasks(req *TaskRequest, srv Tasks_GetTasksServer) error
- func (*UnimplementedTasksServer) Ping(ctx context.Context, req *PingRequest) (*PingReply, error)
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 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) GetMessage ¶
func (*PingReply) ProtoMessage ¶
func (*PingReply) ProtoMessage()
func (*PingReply) XXX_DiscardUnknown ¶
func (m *PingReply) XXX_DiscardUnknown()
func (*PingReply) XXX_Marshal ¶
func (*PingReply) XXX_Unmarshal ¶
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 ¶
type TasksServer interface { GetTasks(*TaskRequest, Tasks_GetTasksServer) error GetDailyTaskCount(*TaskRequest, Tasks_GetDailyTaskCountServer) error GetProjectTaskCount(*TaskRequest, Tasks_GetProjectTaskCountServer) error GetPlot(*PlotRequest, Tasks_GetPlotServer) error Ping(context.Context, *PingRequest) (*PingReply, error) }
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) GetProject ¶
func (*UTask) GetTaskMane ¶
func (*UTask) ProtoMessage ¶
func (*UTask) ProtoMessage()
func (*UTask) XXX_DiscardUnknown ¶
func (m *UTask) XXX_DiscardUnknown()
func (*UTask) XXX_Marshal ¶
func (*UTask) XXX_Unmarshal ¶
type UnimplementedTasksServer ¶
type UnimplementedTasksServer struct { }
UnimplementedTasksServer can be embedded to have forward compatible implementations.
func (*UnimplementedTasksServer) GetDailyTaskCount ¶
func (*UnimplementedTasksServer) GetDailyTaskCount(req *TaskRequest, srv Tasks_GetDailyTaskCountServer) error
func (*UnimplementedTasksServer) GetPlot ¶
func (*UnimplementedTasksServer) GetPlot(req *PlotRequest, srv Tasks_GetPlotServer) error
func (*UnimplementedTasksServer) GetProjectTaskCount ¶
func (*UnimplementedTasksServer) GetProjectTaskCount(req *TaskRequest, srv Tasks_GetProjectTaskCountServer) error
func (*UnimplementedTasksServer) GetTasks ¶
func (*UnimplementedTasksServer) GetTasks(req *TaskRequest, srv Tasks_GetTasksServer) error
func (*UnimplementedTasksServer) Ping ¶
func (*UnimplementedTasksServer) Ping(ctx context.Context, req *PingRequest) (*PingReply, error)
Click to show internal directories.
Click to hide internal directories.