Documentation ¶
Index ¶
- func RegisterAmountServServer(s *grpc.Server, srv AmountServServer)
- func RegisterReportServServer(s *grpc.Server, srv ReportServServer)
- func RegisterSessionServServer(s *grpc.Server, srv SessionServServer)
- func RegisterTicketServServer(s *grpc.Server, srv TicketServServer)
- func RegisterTimeServServer(s *grpc.Server, srv TimeServServer)
- func RegisterUserServServer(s *grpc.Server, srv UserServServer)
- type Amount
- func (*Amount) Descriptor() ([]byte, []int)
- func (m *Amount) GetAmount() float64
- func (m *Amount) GetAmountedAt() int64
- func (m *Amount) GetDescription() string
- func (m *Amount) GetId() int64
- func (m *Amount) GetTicketId() int64
- func (*Amount) ProtoMessage()
- func (m *Amount) Reset()
- func (m *Amount) String() string
- func (m *Amount) XXX_DiscardUnknown()
- func (m *Amount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Amount) XXX_Merge(src proto.Message)
- func (m *Amount) XXX_Size() int
- func (m *Amount) XXX_Unmarshal(b []byte) error
- type AmountQuery
- func (*AmountQuery) Descriptor() ([]byte, []int)
- func (m *AmountQuery) GetAmountedAfter() int64
- func (m *AmountQuery) GetAmountedBefore() int64
- func (m *AmountQuery) GetTicketIds() []int64
- func (*AmountQuery) ProtoMessage()
- func (m *AmountQuery) Reset()
- func (m *AmountQuery) String() string
- func (m *AmountQuery) XXX_DiscardUnknown()
- func (m *AmountQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *AmountQuery) XXX_Merge(src proto.Message)
- func (m *AmountQuery) XXX_Size() int
- func (m *AmountQuery) XXX_Unmarshal(b []byte) error
- type AmountServClient
- type AmountServServer
- type AmountServ_GetAmountsClient
- type AmountServ_GetAmountsServer
- type Login
- func (*Login) Descriptor() ([]byte, []int)
- func (m *Login) GetPassword() string
- func (m *Login) GetUsername() string
- func (*Login) ProtoMessage()
- func (m *Login) Reset()
- func (m *Login) String() string
- func (m *Login) XXX_DiscardUnknown()
- func (m *Login) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Login) XXX_Merge(src proto.Message)
- func (m *Login) XXX_Size() int
- func (m *Login) XXX_Unmarshal(b []byte) error
- type ReportServClient
- type ReportServServer
- type Server
- func (s *Server) Create(ctx context.Context, l *Login) (*Session, error)
- func (s *Server) CreateAmount(ctx context.Context, m *Amount) (*Amount, error)
- func (s *Server) CreateTicket(ctx context.Context, t *Ticket) (*Ticket, error)
- func (s *Server) CreateTime(ctx context.Context, t *Time) (*Time, error)
- func (s *Server) CreateUser(ctx context.Context, u *User) (*User, error)
- func (s *Server) DeleteTime(ctx context.Context, t *Time) (*Time, error)
- func (s *Server) GetAmounts(q *AmountQuery, stream AmountServ_GetAmountsServer) error
- func (s *Server) GetTickets(q *TicketQuery, stream TicketServ_GetTicketsServer) error
- func (s *Server) GetTimes(q *TimeQuery, stream TimeServ_GetTimesServer) error
- func (s *Server) UpdateAmount(ctx context.Context, m *Amount) (*Amount, error)
- func (s *Server) UpdateTime(ctx context.Context, t *Time) (*Time, error)
- type Session
- func (*Session) Descriptor() ([]byte, []int)
- func (m *Session) GetToken() string
- func (*Session) ProtoMessage()
- func (m *Session) Reset()
- func (m *Session) String() string
- func (m *Session) XXX_DiscardUnknown()
- func (m *Session) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Session) XXX_Merge(src proto.Message)
- func (m *Session) XXX_Size() int
- func (m *Session) XXX_Unmarshal(b []byte) error
- type SessionServClient
- type SessionServServer
- type Ticket
- func (*Ticket) Descriptor() ([]byte, []int)
- func (m *Ticket) GetClosedAt() int64
- func (m *Ticket) GetDaysInWeek() float64
- func (m *Ticket) GetDescription() string
- func (m *Ticket) GetId() int64
- func (m *Ticket) GetPriority() int64
- func (*Ticket) ProtoMessage()
- func (m *Ticket) Reset()
- func (m *Ticket) String() string
- func (m *Ticket) XXX_DiscardUnknown()
- func (m *Ticket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Ticket) XXX_Merge(src proto.Message)
- func (m *Ticket) XXX_Size() int
- func (m *Ticket) XXX_Unmarshal(b []byte) error
- type TicketQuery
- func (*TicketQuery) Descriptor() ([]byte, []int)
- func (m *TicketQuery) GetUserId() int64
- func (*TicketQuery) ProtoMessage()
- func (m *TicketQuery) Reset()
- func (m *TicketQuery) String() string
- func (m *TicketQuery) XXX_DiscardUnknown()
- func (m *TicketQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TicketQuery) XXX_Merge(src proto.Message)
- func (m *TicketQuery) XXX_Size() int
- func (m *TicketQuery) XXX_Unmarshal(b []byte) error
- type TicketServClient
- type TicketServServer
- type TicketServ_GetTicketsClient
- type TicketServ_GetTicketsServer
- type Time
- func (*Time) Descriptor() ([]byte, []int)
- func (m *Time) GetBrokeAt() int64
- func (m *Time) GetDescription() string
- func (m *Time) GetEndedAt() int64
- func (m *Time) GetId() int64
- func (m *Time) GetStartedAt() int64
- func (m *Time) GetTicketId() int64
- func (*Time) ProtoMessage()
- func (m *Time) Reset()
- func (m *Time) String() string
- func (m *Time) XXX_DiscardUnknown()
- func (m *Time) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Time) XXX_Merge(src proto.Message)
- func (m *Time) XXX_Size() int
- func (m *Time) XXX_Unmarshal(b []byte) error
- type TimeQuery
- func (*TimeQuery) Descriptor() ([]byte, []int)
- func (m *TimeQuery) GetOmitEnded() bool
- func (m *TimeQuery) GetStartedAfter() int64
- func (m *TimeQuery) GetStartedBefore() int64
- func (m *TimeQuery) GetTicketIds() []int64
- func (*TimeQuery) ProtoMessage()
- func (m *TimeQuery) Reset()
- func (m *TimeQuery) String() string
- func (m *TimeQuery) XXX_DiscardUnknown()
- func (m *TimeQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TimeQuery) XXX_Merge(src proto.Message)
- func (m *TimeQuery) XXX_Size() int
- func (m *TimeQuery) XXX_Unmarshal(b []byte) error
- type TimeServClient
- type TimeServServer
- type TimeServ_GetTimesClient
- type TimeServ_GetTimesServer
- type Total
- func (*Total) Descriptor() ([]byte, []int)
- func (m *Total) GetEndTime() int64
- func (m *Total) GetStartTime() int64
- func (m *Total) GetTotal() float64
- func (*Total) ProtoMessage()
- func (m *Total) Reset()
- func (m *Total) String() string
- func (m *Total) XXX_DiscardUnknown()
- func (m *Total) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Total) XXX_Merge(src proto.Message)
- func (m *Total) XXX_Size() int
- func (m *Total) XXX_Unmarshal(b []byte) error
- type TotalReport
- func (*TotalReport) Descriptor() ([]byte, []int)
- func (m *TotalReport) GetDescription() string
- func (m *TotalReport) GetTicketId() int64
- func (m *TotalReport) GetTotal() float64
- func (m *TotalReport) GetTotals() []*Total
- func (*TotalReport) ProtoMessage()
- func (m *TotalReport) Reset()
- func (m *TotalReport) String() string
- func (m *TotalReport) XXX_DiscardUnknown()
- func (m *TotalReport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TotalReport) XXX_Merge(src proto.Message)
- func (m *TotalReport) XXX_Size() int
- func (m *TotalReport) XXX_Unmarshal(b []byte) error
- type TotalReports
- func (*TotalReports) Descriptor() ([]byte, []int)
- func (m *TotalReports) GetReports() []*TotalReport
- func (*TotalReports) ProtoMessage()
- func (m *TotalReports) Reset()
- func (m *TotalReports) String() string
- func (m *TotalReports) XXX_DiscardUnknown()
- func (m *TotalReports) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TotalReports) XXX_Merge(src proto.Message)
- func (m *TotalReports) XXX_Size() int
- func (m *TotalReports) XXX_Unmarshal(b []byte) error
- type TotalsQuery
- func (*TotalsQuery) Descriptor() ([]byte, []int)
- func (m *TotalsQuery) GetEnd() int64
- func (m *TotalsQuery) GetStart() int64
- func (m *TotalsQuery) GetTicketIds() []int64
- func (*TotalsQuery) ProtoMessage()
- func (m *TotalsQuery) Reset()
- func (m *TotalsQuery) String() string
- func (m *TotalsQuery) XXX_DiscardUnknown()
- func (m *TotalsQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TotalsQuery) XXX_Merge(src proto.Message)
- func (m *TotalsQuery) XXX_Size() int
- func (m *TotalsQuery) XXX_Unmarshal(b []byte) error
- type User
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) GetId() int64
- func (m *User) GetPassword() string
- func (m *User) GetUsername() string
- func (*User) ProtoMessage()
- func (m *User) Reset()
- func (m *User) String() string
- func (m *User) XXX_DiscardUnknown()
- func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *User) XXX_Merge(src proto.Message)
- func (m *User) XXX_Size() int
- func (m *User) XXX_Unmarshal(b []byte) error
- type UserServClient
- type UserServServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAmountServServer ¶
func RegisterAmountServServer(s *grpc.Server, srv AmountServServer)
func RegisterReportServServer ¶
func RegisterReportServServer(s *grpc.Server, srv ReportServServer)
func RegisterSessionServServer ¶
func RegisterSessionServServer(s *grpc.Server, srv SessionServServer)
func RegisterTicketServServer ¶
func RegisterTicketServServer(s *grpc.Server, srv TicketServServer)
func RegisterTimeServServer ¶
func RegisterTimeServServer(s *grpc.Server, srv TimeServServer)
func RegisterUserServServer ¶
func RegisterUserServServer(s *grpc.Server, srv UserServServer)
Types ¶
type Amount ¶
type Amount struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` TicketId int64 `protobuf:"varint,2,opt,name=ticket_id,json=ticketId,proto3" json:"ticket_id,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Amount float64 `protobuf:"fixed64,4,opt,name=amount,proto3" json:"amount,omitempty"` AmountedAt int64 `protobuf:"varint,5,opt,name=amounted_at,json=amountedAt,proto3" json:"amounted_at,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Amount) Descriptor ¶
func (*Amount) GetAmountedAt ¶
func (*Amount) GetDescription ¶
func (*Amount) GetTicketId ¶
func (*Amount) ProtoMessage ¶
func (*Amount) ProtoMessage()
func (*Amount) XXX_DiscardUnknown ¶
func (m *Amount) XXX_DiscardUnknown()
func (*Amount) XXX_Marshal ¶
func (*Amount) XXX_Unmarshal ¶
type AmountQuery ¶
type AmountQuery struct { TicketIds []int64 `protobuf:"varint,1,rep,packed,name=ticket_ids,json=ticketIds,proto3" json:"ticket_ids,omitempty"` AmountedAfter int64 `protobuf:"varint,2,opt,name=amounted_after,json=amountedAfter,proto3" json:"amounted_after,omitempty"` AmountedBefore int64 `protobuf:"varint,3,opt,name=amounted_before,json=amountedBefore,proto3" json:"amounted_before,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AmountQuery) Descriptor ¶
func (*AmountQuery) Descriptor() ([]byte, []int)
func (*AmountQuery) GetAmountedAfter ¶
func (m *AmountQuery) GetAmountedAfter() int64
func (*AmountQuery) GetAmountedBefore ¶
func (m *AmountQuery) GetAmountedBefore() int64
func (*AmountQuery) GetTicketIds ¶
func (m *AmountQuery) GetTicketIds() []int64
func (*AmountQuery) ProtoMessage ¶
func (*AmountQuery) ProtoMessage()
func (*AmountQuery) Reset ¶
func (m *AmountQuery) Reset()
func (*AmountQuery) String ¶
func (m *AmountQuery) String() string
func (*AmountQuery) XXX_DiscardUnknown ¶
func (m *AmountQuery) XXX_DiscardUnknown()
func (*AmountQuery) XXX_Marshal ¶
func (m *AmountQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AmountQuery) XXX_Merge ¶
func (dst *AmountQuery) XXX_Merge(src proto.Message)
func (*AmountQuery) XXX_Size ¶
func (m *AmountQuery) XXX_Size() int
func (*AmountQuery) XXX_Unmarshal ¶
func (m *AmountQuery) XXX_Unmarshal(b []byte) error
type AmountServClient ¶
type AmountServClient interface { GetAmounts(ctx context.Context, in *AmountQuery, opts ...grpc.CallOption) (AmountServ_GetAmountsClient, error) CreateAmount(ctx context.Context, in *Amount, opts ...grpc.CallOption) (*Amount, error) UpdateAmount(ctx context.Context, in *Amount, opts ...grpc.CallOption) (*Amount, error) }
AmountServClient is the client API for AmountServ service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAmountServClient ¶
func NewAmountServClient(cc *grpc.ClientConn) AmountServClient
type AmountServServer ¶
type AmountServServer interface { GetAmounts(*AmountQuery, AmountServ_GetAmountsServer) error CreateAmount(context.Context, *Amount) (*Amount, error) UpdateAmount(context.Context, *Amount) (*Amount, error) }
AmountServServer is the server API for AmountServ service.
type AmountServ_GetAmountsClient ¶
type AmountServ_GetAmountsClient interface { Recv() (*Amount, error) grpc.ClientStream }
type AmountServ_GetAmountsServer ¶
type AmountServ_GetAmountsServer interface { Send(*Amount) error grpc.ServerStream }
type Login ¶
type Login struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Login) Descriptor ¶
func (*Login) GetPassword ¶
func (*Login) GetUsername ¶
func (*Login) ProtoMessage ¶
func (*Login) ProtoMessage()
func (*Login) XXX_DiscardUnknown ¶
func (m *Login) XXX_DiscardUnknown()
func (*Login) XXX_Marshal ¶
func (*Login) XXX_Unmarshal ¶
type ReportServClient ¶
type ReportServClient interface {
Totals(ctx context.Context, in *TotalsQuery, opts ...grpc.CallOption) (*TotalReports, error)
}
ReportServClient is the client API for ReportServ service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewReportServClient ¶
func NewReportServClient(cc *grpc.ClientConn) ReportServClient
type ReportServServer ¶
type ReportServServer interface {
Totals(context.Context, *TotalsQuery) (*TotalReports, error)
}
ReportServServer is the server API for ReportServ service.
type Server ¶
type Server struct { //TODO is it ok to just store the key contents here? PrivateKeyFile string }
Server represents the gRPC server
func (*Server) CreateAmount ¶
CreateAmount creates a new amount against a ticket
func (*Server) CreateTicket ¶
CreateTicket creates a new ticket
func (*Server) CreateTime ¶
CreateTime creates a new time against a ticket
func (*Server) CreateUser ¶
CreateUser adds a new user to the system
func (*Server) DeleteTime ¶
DeleteTime updates an existing time record
func (*Server) GetAmounts ¶
func (s *Server) GetAmounts(q *AmountQuery, stream AmountServ_GetAmountsServer) error
GetAmounts calls the API to get all amounts based on query parameters
func (*Server) GetTickets ¶
func (s *Server) GetTickets(q *TicketQuery, stream TicketServ_GetTicketsServer) error
GetTickets lists a user's tickets
func (*Server) GetTimes ¶
func (s *Server) GetTimes(q *TimeQuery, stream TimeServ_GetTimesServer) error
GetTimes lists the recorded times according to a query
func (*Server) UpdateAmount ¶
UpdateAmount updates an existing amount record
type Session ¶
type Session struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Session) Descriptor ¶
func (*Session) ProtoMessage ¶
func (*Session) ProtoMessage()
func (*Session) XXX_DiscardUnknown ¶
func (m *Session) XXX_DiscardUnknown()
func (*Session) XXX_Marshal ¶
func (*Session) XXX_Unmarshal ¶
type SessionServClient ¶
type SessionServClient interface {
Create(ctx context.Context, in *Login, opts ...grpc.CallOption) (*Session, error)
}
SessionServClient is the client API for SessionServ service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewSessionServClient ¶
func NewSessionServClient(cc *grpc.ClientConn) SessionServClient
type SessionServServer ¶
SessionServServer is the server API for SessionServ service.
type Ticket ¶
type Ticket struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` ClosedAt int64 `protobuf:"varint,3,opt,name=closed_at,json=closedAt,proto3" json:"closed_at,omitempty"` DaysInWeek float64 `protobuf:"fixed64,4,opt,name=days_in_week,json=daysInWeek,proto3" json:"days_in_week,omitempty"` Priority int64 `protobuf:"varint,5,opt,name=priority,proto3" json:"priority,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Ticket) Descriptor ¶
func (*Ticket) GetClosedAt ¶
func (*Ticket) GetDaysInWeek ¶
func (*Ticket) GetDescription ¶
func (*Ticket) GetPriority ¶
func (*Ticket) ProtoMessage ¶
func (*Ticket) ProtoMessage()
func (*Ticket) XXX_DiscardUnknown ¶
func (m *Ticket) XXX_DiscardUnknown()
func (*Ticket) XXX_Marshal ¶
func (*Ticket) XXX_Unmarshal ¶
type TicketQuery ¶
type TicketQuery struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TicketQuery) Descriptor ¶
func (*TicketQuery) Descriptor() ([]byte, []int)
func (*TicketQuery) GetUserId ¶
func (m *TicketQuery) GetUserId() int64
func (*TicketQuery) ProtoMessage ¶
func (*TicketQuery) ProtoMessage()
func (*TicketQuery) Reset ¶
func (m *TicketQuery) Reset()
func (*TicketQuery) String ¶
func (m *TicketQuery) String() string
func (*TicketQuery) XXX_DiscardUnknown ¶
func (m *TicketQuery) XXX_DiscardUnknown()
func (*TicketQuery) XXX_Marshal ¶
func (m *TicketQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TicketQuery) XXX_Merge ¶
func (dst *TicketQuery) XXX_Merge(src proto.Message)
func (*TicketQuery) XXX_Size ¶
func (m *TicketQuery) XXX_Size() int
func (*TicketQuery) XXX_Unmarshal ¶
func (m *TicketQuery) XXX_Unmarshal(b []byte) error
type TicketServClient ¶
type TicketServClient interface { GetTickets(ctx context.Context, in *TicketQuery, opts ...grpc.CallOption) (TicketServ_GetTicketsClient, error) CreateTicket(ctx context.Context, in *Ticket, opts ...grpc.CallOption) (*Ticket, error) }
TicketServClient is the client API for TicketServ service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewTicketServClient ¶
func NewTicketServClient(cc *grpc.ClientConn) TicketServClient
type TicketServServer ¶
type TicketServServer interface { GetTickets(*TicketQuery, TicketServ_GetTicketsServer) error CreateTicket(context.Context, *Ticket) (*Ticket, error) }
TicketServServer is the server API for TicketServ service.
type TicketServ_GetTicketsClient ¶
type TicketServ_GetTicketsClient interface { Recv() (*Ticket, error) grpc.ClientStream }
type TicketServ_GetTicketsServer ¶
type TicketServ_GetTicketsServer interface { Send(*Ticket) error grpc.ServerStream }
type Time ¶
type Time struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` TicketId int64 `protobuf:"varint,2,opt,name=ticket_id,json=ticketId,proto3" json:"ticket_id,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` StartedAt int64 `protobuf:"varint,4,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` BrokeAt int64 `protobuf:"varint,5,opt,name=broke_at,json=brokeAt,proto3" json:"broke_at,omitempty"` EndedAt int64 `protobuf:"varint,6,opt,name=ended_at,json=endedAt,proto3" json:"ended_at,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Time) Descriptor ¶
func (*Time) GetBrokeAt ¶
func (*Time) GetDescription ¶
func (*Time) GetEndedAt ¶
func (*Time) GetStartedAt ¶
func (*Time) GetTicketId ¶
func (*Time) ProtoMessage ¶
func (*Time) ProtoMessage()
func (*Time) XXX_DiscardUnknown ¶
func (m *Time) XXX_DiscardUnknown()
func (*Time) XXX_Unmarshal ¶
type TimeQuery ¶
type TimeQuery struct { TicketIds []int64 `protobuf:"varint,1,rep,packed,name=ticket_ids,json=ticketIds,proto3" json:"ticket_ids,omitempty"` StartedAfter int64 `protobuf:"varint,2,opt,name=started_after,json=startedAfter,proto3" json:"started_after,omitempty"` StartedBefore int64 `protobuf:"varint,3,opt,name=started_before,json=startedBefore,proto3" json:"started_before,omitempty"` OmitEnded bool `protobuf:"varint,4,opt,name=omit_ended,json=omitEnded,proto3" json:"omit_ended,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TimeQuery) Descriptor ¶
func (*TimeQuery) GetOmitEnded ¶
func (*TimeQuery) GetStartedAfter ¶
func (*TimeQuery) GetStartedBefore ¶
func (*TimeQuery) GetTicketIds ¶
func (*TimeQuery) ProtoMessage ¶
func (*TimeQuery) ProtoMessage()
func (*TimeQuery) XXX_DiscardUnknown ¶
func (m *TimeQuery) XXX_DiscardUnknown()
func (*TimeQuery) XXX_Marshal ¶
func (*TimeQuery) XXX_Unmarshal ¶
type TimeServClient ¶
type TimeServClient interface { GetTimes(ctx context.Context, in *TimeQuery, opts ...grpc.CallOption) (TimeServ_GetTimesClient, error) CreateTime(ctx context.Context, in *Time, opts ...grpc.CallOption) (*Time, error) UpdateTime(ctx context.Context, in *Time, opts ...grpc.CallOption) (*Time, error) DeleteTime(ctx context.Context, in *Time, opts ...grpc.CallOption) (*Time, error) }
TimeServClient is the client API for TimeServ service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewTimeServClient ¶
func NewTimeServClient(cc *grpc.ClientConn) TimeServClient
type TimeServServer ¶
type TimeServServer interface { GetTimes(*TimeQuery, TimeServ_GetTimesServer) error CreateTime(context.Context, *Time) (*Time, error) UpdateTime(context.Context, *Time) (*Time, error) DeleteTime(context.Context, *Time) (*Time, error) }
TimeServServer is the server API for TimeServ service.
type TimeServ_GetTimesClient ¶
type TimeServ_GetTimesClient interface { Recv() (*Time, error) grpc.ClientStream }
type TimeServ_GetTimesServer ¶
type TimeServ_GetTimesServer interface { Send(*Time) error grpc.ServerStream }
type Total ¶
type Total struct { StartTime int64 `protobuf:"varint,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` EndTime int64 `protobuf:"varint,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` Total float64 `protobuf:"fixed64,3,opt,name=total,proto3" json:"total,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Total) Descriptor ¶
func (*Total) GetEndTime ¶
func (*Total) GetStartTime ¶
func (*Total) ProtoMessage ¶
func (*Total) ProtoMessage()
func (*Total) XXX_DiscardUnknown ¶
func (m *Total) XXX_DiscardUnknown()
func (*Total) XXX_Marshal ¶
func (*Total) XXX_Unmarshal ¶
type TotalReport ¶
type TotalReport struct { TicketId int64 `protobuf:"varint,1,opt,name=ticket_id,json=ticketId,proto3" json:"ticket_id,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Total float64 `protobuf:"fixed64,3,opt,name=total,proto3" json:"total,omitempty"` Totals []*Total `protobuf:"bytes,4,rep,name=totals,proto3" json:"totals,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TotalReport) Descriptor ¶
func (*TotalReport) Descriptor() ([]byte, []int)
func (*TotalReport) GetDescription ¶
func (m *TotalReport) GetDescription() string
func (*TotalReport) GetTicketId ¶
func (m *TotalReport) GetTicketId() int64
func (*TotalReport) GetTotal ¶
func (m *TotalReport) GetTotal() float64
func (*TotalReport) GetTotals ¶
func (m *TotalReport) GetTotals() []*Total
func (*TotalReport) ProtoMessage ¶
func (*TotalReport) ProtoMessage()
func (*TotalReport) Reset ¶
func (m *TotalReport) Reset()
func (*TotalReport) String ¶
func (m *TotalReport) String() string
func (*TotalReport) XXX_DiscardUnknown ¶
func (m *TotalReport) XXX_DiscardUnknown()
func (*TotalReport) XXX_Marshal ¶
func (m *TotalReport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TotalReport) XXX_Merge ¶
func (dst *TotalReport) XXX_Merge(src proto.Message)
func (*TotalReport) XXX_Size ¶
func (m *TotalReport) XXX_Size() int
func (*TotalReport) XXX_Unmarshal ¶
func (m *TotalReport) XXX_Unmarshal(b []byte) error
type TotalReports ¶
type TotalReports struct { Reports []*TotalReport `protobuf:"bytes,1,rep,name=reports,proto3" json:"reports,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TotalReports) Descriptor ¶
func (*TotalReports) Descriptor() ([]byte, []int)
func (*TotalReports) GetReports ¶
func (m *TotalReports) GetReports() []*TotalReport
func (*TotalReports) ProtoMessage ¶
func (*TotalReports) ProtoMessage()
func (*TotalReports) Reset ¶
func (m *TotalReports) Reset()
func (*TotalReports) String ¶
func (m *TotalReports) String() string
func (*TotalReports) XXX_DiscardUnknown ¶
func (m *TotalReports) XXX_DiscardUnknown()
func (*TotalReports) XXX_Marshal ¶
func (m *TotalReports) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TotalReports) XXX_Merge ¶
func (dst *TotalReports) XXX_Merge(src proto.Message)
func (*TotalReports) XXX_Size ¶
func (m *TotalReports) XXX_Size() int
func (*TotalReports) XXX_Unmarshal ¶
func (m *TotalReports) XXX_Unmarshal(b []byte) error
type TotalsQuery ¶
type TotalsQuery struct { TicketIds []int64 `protobuf:"varint,1,rep,packed,name=ticket_ids,json=ticketIds,proto3" json:"ticket_ids,omitempty"` Start int64 `protobuf:"varint,2,opt,name=start,proto3" json:"start,omitempty"` End int64 `protobuf:"varint,3,opt,name=end,proto3" json:"end,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TotalsQuery) Descriptor ¶
func (*TotalsQuery) Descriptor() ([]byte, []int)
func (*TotalsQuery) GetEnd ¶
func (m *TotalsQuery) GetEnd() int64
func (*TotalsQuery) GetStart ¶
func (m *TotalsQuery) GetStart() int64
func (*TotalsQuery) GetTicketIds ¶
func (m *TotalsQuery) GetTicketIds() []int64
func (*TotalsQuery) ProtoMessage ¶
func (*TotalsQuery) ProtoMessage()
func (*TotalsQuery) Reset ¶
func (m *TotalsQuery) Reset()
func (*TotalsQuery) String ¶
func (m *TotalsQuery) String() string
func (*TotalsQuery) XXX_DiscardUnknown ¶
func (m *TotalsQuery) XXX_DiscardUnknown()
func (*TotalsQuery) XXX_Marshal ¶
func (m *TotalsQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TotalsQuery) XXX_Merge ¶
func (dst *TotalsQuery) XXX_Merge(src proto.Message)
func (*TotalsQuery) XXX_Size ¶
func (m *TotalsQuery) XXX_Size() int
func (*TotalsQuery) XXX_Unmarshal ¶
func (m *TotalsQuery) XXX_Unmarshal(b []byte) error
type User ¶
type User struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*User) Descriptor ¶
func (*User) GetPassword ¶
func (*User) GetUsername ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) XXX_DiscardUnknown ¶
func (m *User) XXX_DiscardUnknown()
func (*User) XXX_Unmarshal ¶
type UserServClient ¶
type UserServClient interface {
CreateUser(ctx context.Context, in *User, opts ...grpc.CallOption) (*User, error)
}
UserServClient is the client API for UserServ service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewUserServClient ¶
func NewUserServClient(cc *grpc.ClientConn) UserServClient