api

package module
v0.0.0-...-b012a22 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

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

func (*Amount) GetAmount

func (m *Amount) GetAmount() float64

func (*Amount) GetAmountedAt

func (m *Amount) GetAmountedAt() int64

func (*Amount) GetDescription

func (m *Amount) GetDescription() string

func (*Amount) GetId

func (m *Amount) GetId() int64

func (*Amount) GetTicketId

func (m *Amount) GetTicketId() int64

func (*Amount) ProtoMessage

func (*Amount) ProtoMessage()

func (*Amount) Reset

func (m *Amount) Reset()

func (*Amount) String

func (m *Amount) String() string

func (*Amount) XXX_DiscardUnknown

func (m *Amount) XXX_DiscardUnknown()

func (*Amount) XXX_Marshal

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

func (*Amount) XXX_Merge

func (dst *Amount) XXX_Merge(src proto.Message)

func (*Amount) XXX_Size

func (m *Amount) XXX_Size() int

func (*Amount) XXX_Unmarshal

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

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

func (*Login) GetPassword

func (m *Login) GetPassword() string

func (*Login) GetUsername

func (m *Login) GetUsername() string

func (*Login) ProtoMessage

func (*Login) ProtoMessage()

func (*Login) Reset

func (m *Login) Reset()

func (*Login) String

func (m *Login) String() string

func (*Login) XXX_DiscardUnknown

func (m *Login) XXX_DiscardUnknown()

func (*Login) XXX_Marshal

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

func (*Login) XXX_Merge

func (dst *Login) XXX_Merge(src proto.Message)

func (*Login) XXX_Size

func (m *Login) XXX_Size() int

func (*Login) XXX_Unmarshal

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

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) Create

func (s *Server) Create(ctx context.Context, l *Login) (*Session, error)

Create authenticates a user and returns a session token

func (*Server) CreateAmount

func (s *Server) CreateAmount(ctx context.Context, m *Amount) (*Amount, error)

CreateAmount creates a new amount against a ticket

func (*Server) CreateTicket

func (s *Server) CreateTicket(ctx context.Context, t *Ticket) (*Ticket, error)

CreateTicket creates a new ticket

func (*Server) CreateTime

func (s *Server) CreateTime(ctx context.Context, t *Time) (*Time, error)

CreateTime creates a new time against a ticket

func (*Server) CreateUser

func (s *Server) CreateUser(ctx context.Context, u *User) (*User, error)

CreateUser adds a new user to the system

func (*Server) DeleteTime

func (s *Server) DeleteTime(ctx context.Context, t *Time) (*Time, error)

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

func (s *Server) UpdateAmount(ctx context.Context, m *Amount) (*Amount, error)

UpdateAmount updates an existing amount record

func (*Server) UpdateTime

func (s *Server) UpdateTime(ctx context.Context, t *Time) (*Time, error)

UpdateTime updates an existing time 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) Descriptor() ([]byte, []int)

func (*Session) GetToken

func (m *Session) GetToken() string

func (*Session) ProtoMessage

func (*Session) ProtoMessage()

func (*Session) Reset

func (m *Session) Reset()

func (*Session) String

func (m *Session) String() string

func (*Session) XXX_DiscardUnknown

func (m *Session) XXX_DiscardUnknown()

func (*Session) XXX_Marshal

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

func (*Session) XXX_Merge

func (dst *Session) XXX_Merge(src proto.Message)

func (*Session) XXX_Size

func (m *Session) XXX_Size() int

func (*Session) XXX_Unmarshal

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

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

type SessionServServer interface {
	Create(context.Context, *Login) (*Session, error)
}

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

func (*Ticket) GetClosedAt

func (m *Ticket) GetClosedAt() int64

func (*Ticket) GetDaysInWeek

func (m *Ticket) GetDaysInWeek() float64

func (*Ticket) GetDescription

func (m *Ticket) GetDescription() string

func (*Ticket) GetId

func (m *Ticket) GetId() int64

func (*Ticket) GetPriority

func (m *Ticket) GetPriority() int64

func (*Ticket) ProtoMessage

func (*Ticket) ProtoMessage()

func (*Ticket) Reset

func (m *Ticket) Reset()

func (*Ticket) String

func (m *Ticket) String() string

func (*Ticket) XXX_DiscardUnknown

func (m *Ticket) XXX_DiscardUnknown()

func (*Ticket) XXX_Marshal

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

func (*Ticket) XXX_Merge

func (dst *Ticket) XXX_Merge(src proto.Message)

func (*Ticket) XXX_Size

func (m *Ticket) XXX_Size() int

func (*Ticket) XXX_Unmarshal

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

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

func (*Time) GetBrokeAt

func (m *Time) GetBrokeAt() int64

func (*Time) GetDescription

func (m *Time) GetDescription() string

func (*Time) GetEndedAt

func (m *Time) GetEndedAt() int64

func (*Time) GetId

func (m *Time) GetId() int64

func (*Time) GetStartedAt

func (m *Time) GetStartedAt() int64

func (*Time) GetTicketId

func (m *Time) GetTicketId() int64

func (*Time) ProtoMessage

func (*Time) ProtoMessage()

func (*Time) Reset

func (m *Time) Reset()

func (*Time) String

func (m *Time) String() string

func (*Time) XXX_DiscardUnknown

func (m *Time) XXX_DiscardUnknown()

func (*Time) XXX_Marshal

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

func (*Time) XXX_Merge

func (dst *Time) XXX_Merge(src proto.Message)

func (*Time) XXX_Size

func (m *Time) XXX_Size() int

func (*Time) XXX_Unmarshal

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

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

func (*TimeQuery) GetOmitEnded

func (m *TimeQuery) GetOmitEnded() bool

func (*TimeQuery) GetStartedAfter

func (m *TimeQuery) GetStartedAfter() int64

func (*TimeQuery) GetStartedBefore

func (m *TimeQuery) GetStartedBefore() int64

func (*TimeQuery) GetTicketIds

func (m *TimeQuery) GetTicketIds() []int64

func (*TimeQuery) ProtoMessage

func (*TimeQuery) ProtoMessage()

func (*TimeQuery) Reset

func (m *TimeQuery) Reset()

func (*TimeQuery) String

func (m *TimeQuery) String() string

func (*TimeQuery) XXX_DiscardUnknown

func (m *TimeQuery) XXX_DiscardUnknown()

func (*TimeQuery) XXX_Marshal

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

func (*TimeQuery) XXX_Merge

func (dst *TimeQuery) XXX_Merge(src proto.Message)

func (*TimeQuery) XXX_Size

func (m *TimeQuery) XXX_Size() int

func (*TimeQuery) XXX_Unmarshal

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

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

func (*Total) GetEndTime

func (m *Total) GetEndTime() int64

func (*Total) GetStartTime

func (m *Total) GetStartTime() int64

func (*Total) GetTotal

func (m *Total) GetTotal() float64

func (*Total) ProtoMessage

func (*Total) ProtoMessage()

func (*Total) Reset

func (m *Total) Reset()

func (*Total) String

func (m *Total) String() string

func (*Total) XXX_DiscardUnknown

func (m *Total) XXX_DiscardUnknown()

func (*Total) XXX_Marshal

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

func (*Total) XXX_Merge

func (dst *Total) XXX_Merge(src proto.Message)

func (*Total) XXX_Size

func (m *Total) XXX_Size() int

func (*Total) XXX_Unmarshal

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

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

func (*User) GetId

func (m *User) GetId() int64

func (*User) GetPassword

func (m *User) GetPassword() string

func (*User) GetUsername

func (m *User) GetUsername() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) String

func (m *User) String() string

func (*User) XXX_DiscardUnknown

func (m *User) XXX_DiscardUnknown()

func (*User) XXX_Marshal

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

func (*User) XXX_Merge

func (dst *User) XXX_Merge(src proto.Message)

func (*User) XXX_Size

func (m *User) XXX_Size() int

func (*User) XXX_Unmarshal

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

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

type UserServServer

type UserServServer interface {
	CreateUser(context.Context, *User) (*User, error)
}

UserServServer is the server API for UserServ service.

Jump to

Keyboard shortcuts

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