chessclock

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2017 License: BSD-3-Clause Imports: 5 Imported by: 1

Documentation

Overview

Package chessclock is a generated protocol buffer package.

It is generated from these files:

chessclock.proto

It has these top-level messages:

StartRequest
StartResponse
StopRequest
StopResponse
ScheduleRequest
ScheduleResponse
TallyRequest
TallyResponse
ListTimeSheetsRequest
ListTimeSheetsResponse
ListTagsRequest
ListTagsResponse
VersionRequest
VersionResponse

Index

Constants

This section is empty.

Variables

View Source
var StopRequest_Reason_name = map[int32]string{
	0: "Break",
	1: "Lunch",
	2: "EndOfDay",
}
View Source
var StopRequest_Reason_value = map[string]int32{
	"Break":    0,
	"Lunch":    1,
	"EndOfDay": 2,
}

Functions

func RegisterChessClockServer

func RegisterChessClockServer(s *grpc.Server, srv ChessClockServer)

Types

type ChessClockClient

type ChessClockClient interface {
	Start(ctx context.Context, in *StartRequest, opts ...grpc.CallOption) (*StartResponse, error)
	Stop(ctx context.Context, in *StopRequest, opts ...grpc.CallOption) (*StopResponse, error)
	Schedule(ctx context.Context, in *ScheduleRequest, opts ...grpc.CallOption) (*ScheduleResponse, error)
	Tally(ctx context.Context, in *TallyRequest, opts ...grpc.CallOption) (*TallyResponse, error)
	ListTimeSheets(ctx context.Context, in *ListTimeSheetsRequest, opts ...grpc.CallOption) (*ListTimeSheetsResponse, error)
	ListTags(ctx context.Context, in *ListTagsRequest, opts ...grpc.CallOption) (*ListTagsResponse, error)
	Version(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*VersionResponse, error)
}

func NewChessClockClient

func NewChessClockClient(cc *grpc.ClientConn) ChessClockClient

type ListTagsRequest

type ListTagsRequest struct {
	Date int64 `protobuf:"varint,1,opt,name=date" json:"date,omitempty"`
}

func (*ListTagsRequest) Descriptor

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

func (*ListTagsRequest) GetDate

func (m *ListTagsRequest) GetDate() int64

func (*ListTagsRequest) ProtoMessage

func (*ListTagsRequest) ProtoMessage()

func (*ListTagsRequest) Reset

func (m *ListTagsRequest) Reset()

func (*ListTagsRequest) String

func (m *ListTagsRequest) String() string

type ListTagsResponse

type ListTagsResponse struct {
	Tags []string `protobuf:"bytes,1,rep,name=tags" json:"tags,omitempty"`
}

func (*ListTagsResponse) Descriptor

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

func (*ListTagsResponse) GetTags

func (m *ListTagsResponse) GetTags() []string

func (*ListTagsResponse) ProtoMessage

func (*ListTagsResponse) ProtoMessage()

func (*ListTagsResponse) Reset

func (m *ListTagsResponse) Reset()

func (*ListTagsResponse) String

func (m *ListTagsResponse) String() string

type ListTimeSheetsRequest

type ListTimeSheetsRequest struct {
}

Empty request but useful if we need parameters later.

func (*ListTimeSheetsRequest) Descriptor

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

func (*ListTimeSheetsRequest) ProtoMessage

func (*ListTimeSheetsRequest) ProtoMessage()

func (*ListTimeSheetsRequest) Reset

func (m *ListTimeSheetsRequest) Reset()

func (*ListTimeSheetsRequest) String

func (m *ListTimeSheetsRequest) String() string

type ListTimeSheetsResponse

type ListTimeSheetsResponse struct {
	Dates []int64 `protobuf:"varint,1,rep,packed,name=dates" json:"dates,omitempty"`
}

func (*ListTimeSheetsResponse) Descriptor

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

func (*ListTimeSheetsResponse) GetDates

func (m *ListTimeSheetsResponse) GetDates() []int64

func (*ListTimeSheetsResponse) ProtoMessage

func (*ListTimeSheetsResponse) ProtoMessage()

func (*ListTimeSheetsResponse) Reset

func (m *ListTimeSheetsResponse) Reset()

func (*ListTimeSheetsResponse) String

func (m *ListTimeSheetsResponse) String() string

type ScheduleRequest

type ScheduleRequest struct {
	Date int64 `protobuf:"varint,1,opt,name=date" json:"date,omitempty"`
}

func (*ScheduleRequest) Descriptor

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

func (*ScheduleRequest) GetDate

func (m *ScheduleRequest) GetDate() int64

func (*ScheduleRequest) ProtoMessage

func (*ScheduleRequest) ProtoMessage()

func (*ScheduleRequest) Reset

func (m *ScheduleRequest) Reset()

func (*ScheduleRequest) String

func (m *ScheduleRequest) String() string

type ScheduleResponse

type ScheduleResponse struct {
	Tasks []*ScheduleResponse_Task `protobuf:"bytes,1,rep,name=tasks" json:"tasks,omitempty"`
}

func (*ScheduleResponse) Descriptor

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

func (*ScheduleResponse) GetTasks

func (m *ScheduleResponse) GetTasks() []*ScheduleResponse_Task

func (*ScheduleResponse) ProtoMessage

func (*ScheduleResponse) ProtoMessage()

func (*ScheduleResponse) Reset

func (m *ScheduleResponse) Reset()

func (*ScheduleResponse) String

func (m *ScheduleResponse) String() string

type ScheduleResponse_Task

type ScheduleResponse_Task struct {
	Timestamp   int64  `protobuf:"varint,1,opt,name=timestamp" json:"timestamp,omitempty"`
	Tag         string `protobuf:"bytes,2,opt,name=tag" json:"tag,omitempty"`
	Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"`
}

func (*ScheduleResponse_Task) Descriptor

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

func (*ScheduleResponse_Task) GetDescription

func (m *ScheduleResponse_Task) GetDescription() string

func (*ScheduleResponse_Task) GetTag

func (m *ScheduleResponse_Task) GetTag() string

func (*ScheduleResponse_Task) GetTimestamp

func (m *ScheduleResponse_Task) GetTimestamp() int64

func (*ScheduleResponse_Task) ProtoMessage

func (*ScheduleResponse_Task) ProtoMessage()

func (*ScheduleResponse_Task) Reset

func (m *ScheduleResponse_Task) Reset()

func (*ScheduleResponse_Task) String

func (m *ScheduleResponse_Task) String() string

type StartRequest

type StartRequest struct {
	Timestamp   int64  `protobuf:"varint,1,opt,name=timestamp" json:"timestamp,omitempty"`
	Tag         string `protobuf:"bytes,2,opt,name=tag" json:"tag,omitempty"`
	Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"`
}

func (*StartRequest) Descriptor

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

func (*StartRequest) GetDescription

func (m *StartRequest) GetDescription() string

func (*StartRequest) GetTag

func (m *StartRequest) GetTag() string

func (*StartRequest) GetTimestamp

func (m *StartRequest) GetTimestamp() int64

func (*StartRequest) ProtoMessage

func (*StartRequest) ProtoMessage()

func (*StartRequest) Reset

func (m *StartRequest) Reset()

func (*StartRequest) String

func (m *StartRequest) String() string

type StartResponse

type StartResponse struct {
}

Empty response but useful if we need a resposne later.

func (*StartResponse) Descriptor

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

func (*StartResponse) ProtoMessage

func (*StartResponse) ProtoMessage()

func (*StartResponse) Reset

func (m *StartResponse) Reset()

func (*StartResponse) String

func (m *StartResponse) String() string

type StopRequest

type StopRequest struct {
	Timestamp int64              `protobuf:"varint,1,opt,name=timestamp" json:"timestamp,omitempty"`
	Reason    StopRequest_Reason `protobuf:"varint,2,opt,name=reason,enum=chessclock.StopRequest_Reason" json:"reason,omitempty"`
}

func (*StopRequest) Descriptor

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

func (*StopRequest) GetReason

func (m *StopRequest) GetReason() StopRequest_Reason

func (*StopRequest) GetTimestamp

func (m *StopRequest) GetTimestamp() int64

func (*StopRequest) ProtoMessage

func (*StopRequest) ProtoMessage()

func (*StopRequest) Reset

func (m *StopRequest) Reset()

func (*StopRequest) String

func (m *StopRequest) String() string

type StopRequest_Reason

type StopRequest_Reason int32
const (
	StopRequest_Break    StopRequest_Reason = 0
	StopRequest_Lunch    StopRequest_Reason = 1
	StopRequest_EndOfDay StopRequest_Reason = 2
)

func (StopRequest_Reason) EnumDescriptor

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

func (StopRequest_Reason) String

func (x StopRequest_Reason) String() string

type StopResponse

type StopResponse struct {
}

Empty response but useful if we need a resposne later.

func (*StopResponse) Descriptor

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

func (*StopResponse) ProtoMessage

func (*StopResponse) ProtoMessage()

func (*StopResponse) Reset

func (m *StopResponse) Reset()

func (*StopResponse) String

func (m *StopResponse) String() string

type TallyRequest

type TallyRequest struct {
	Date int64 `protobuf:"varint,1,opt,name=date" json:"date,omitempty"`
}

func (*TallyRequest) Descriptor

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

func (*TallyRequest) GetDate

func (m *TallyRequest) GetDate() int64

func (*TallyRequest) ProtoMessage

func (*TallyRequest) ProtoMessage()

func (*TallyRequest) Reset

func (m *TallyRequest) Reset()

func (*TallyRequest) String

func (m *TallyRequest) String() string

type TallyResponse

type TallyResponse struct {
	Tasks []*TallyResponse_Task `protobuf:"bytes,1,rep,name=tasks" json:"tasks,omitempty"`
}

func (*TallyResponse) Descriptor

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

func (*TallyResponse) GetTasks

func (m *TallyResponse) GetTasks() []*TallyResponse_Task

func (*TallyResponse) ProtoMessage

func (*TallyResponse) ProtoMessage()

func (*TallyResponse) Reset

func (m *TallyResponse) Reset()

func (*TallyResponse) String

func (m *TallyResponse) String() string

type TallyResponse_Task

type TallyResponse_Task struct {
	Timespan    int64  `protobuf:"varint,1,opt,name=timespan" json:"timespan,omitempty"`
	Tag         string `protobuf:"bytes,2,opt,name=tag" json:"tag,omitempty"`
	Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"`
}

func (*TallyResponse_Task) Descriptor

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

func (*TallyResponse_Task) GetDescription

func (m *TallyResponse_Task) GetDescription() string

func (*TallyResponse_Task) GetTag

func (m *TallyResponse_Task) GetTag() string

func (*TallyResponse_Task) GetTimespan

func (m *TallyResponse_Task) GetTimespan() int64

func (*TallyResponse_Task) ProtoMessage

func (*TallyResponse_Task) ProtoMessage()

func (*TallyResponse_Task) Reset

func (m *TallyResponse_Task) Reset()

func (*TallyResponse_Task) String

func (m *TallyResponse_Task) String() string

type VersionRequest

type VersionRequest struct {
}

Empty request but useful if we need parameters later.

func (*VersionRequest) Descriptor

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

func (*VersionRequest) ProtoMessage

func (*VersionRequest) ProtoMessage()

func (*VersionRequest) Reset

func (m *VersionRequest) Reset()

func (*VersionRequest) String

func (m *VersionRequest) String() string

type VersionResponse

type VersionResponse struct {
	Version string `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"`
}

func (*VersionResponse) Descriptor

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

func (*VersionResponse) GetVersion

func (m *VersionResponse) GetVersion() string

func (*VersionResponse) ProtoMessage

func (*VersionResponse) ProtoMessage()

func (*VersionResponse) Reset

func (m *VersionResponse) Reset()

func (*VersionResponse) String

func (m *VersionResponse) String() string

Jump to

Keyboard shortcuts

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