pb

package
v0.0.0-...-2e78db6 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_clservice_proto protoreflect.FileDescriptor
View Source
var File_cltypes_proto protoreflect.FileDescriptor

Functions

func RegisterClientsServiceServer

func RegisterClientsServiceServer(s *grpc.Server, srv ClientsServiceServer)

Types

type Client

type Client struct {
	Id       string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name     string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Birthday int64  `protobuf:"varint,3,opt,name=birthday,proto3" json:"birthday,omitempty"`
	Score    int64  `protobuf:"varint,4,opt,name=score,proto3" json:"score,omitempty"` // FIXME: adicionar created_at
	// contains filtered or unexported fields
}

func (*Client) Descriptor deprecated

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

Deprecated: Use Client.ProtoReflect.Descriptor instead.

func (*Client) GetBirthday

func (x *Client) GetBirthday() int64

func (*Client) GetId

func (x *Client) GetId() string

func (*Client) GetName

func (x *Client) GetName() string

func (*Client) GetScore

func (x *Client) GetScore() int64

func (*Client) ProtoMessage

func (*Client) ProtoMessage()

func (*Client) ProtoReflect

func (x *Client) ProtoReflect() protoreflect.Message

func (*Client) Reset

func (x *Client) Reset()

func (*Client) String

func (x *Client) String() string

type ClientsServiceClient

type ClientsServiceClient interface {
	NewClient(ctx context.Context, in *NewClientRequest, opts ...grpc.CallOption) (*NewClientResponse, error)
	QueryClients(ctx context.Context, in *QueryClientsRequest, opts ...grpc.CallOption) (*QueryClientsResponse, error)
	GetClients(ctx context.Context, in *GetClientsRequest, opts ...grpc.CallOption) (*GetClientsResponse, error)
	DeleteClient(ctx context.Context, in *DeleteClientRequest, opts ...grpc.CallOption) (*DeleteClientResponse, error)
	DeleteAllClients(ctx context.Context, in *DeleteAllClientsRequest, opts ...grpc.CallOption) (*DeleteAllClientsResponse, error)
	NewMatch(ctx context.Context, in *NewMatchRequest, opts ...grpc.CallOption) (*NewMatchResponse, error)
	Sort(ctx context.Context, in *SortRequest, opts ...grpc.CallOption) (*SortResponse, error)
}

ClientsServiceClient is the client API for ClientsService service.

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

type ClientsServiceServer

ClientsServiceServer is the server API for ClientsService service.

type DeleteAllClientsRequest

type DeleteAllClientsRequest struct {
	// contains filtered or unexported fields
}

func (*DeleteAllClientsRequest) Descriptor deprecated

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

Deprecated: Use DeleteAllClientsRequest.ProtoReflect.Descriptor instead.

func (*DeleteAllClientsRequest) ProtoMessage

func (*DeleteAllClientsRequest) ProtoMessage()

func (*DeleteAllClientsRequest) ProtoReflect

func (x *DeleteAllClientsRequest) ProtoReflect() protoreflect.Message

func (*DeleteAllClientsRequest) Reset

func (x *DeleteAllClientsRequest) Reset()

func (*DeleteAllClientsRequest) String

func (x *DeleteAllClientsRequest) String() string

type DeleteAllClientsResponse

type DeleteAllClientsResponse struct {
	// contains filtered or unexported fields
}

func (*DeleteAllClientsResponse) Descriptor deprecated

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

Deprecated: Use DeleteAllClientsResponse.ProtoReflect.Descriptor instead.

func (*DeleteAllClientsResponse) ProtoMessage

func (*DeleteAllClientsResponse) ProtoMessage()

func (*DeleteAllClientsResponse) ProtoReflect

func (x *DeleteAllClientsResponse) ProtoReflect() protoreflect.Message

func (*DeleteAllClientsResponse) Reset

func (x *DeleteAllClientsResponse) Reset()

func (*DeleteAllClientsResponse) String

func (x *DeleteAllClientsResponse) String() string

type DeleteClientRequest

type DeleteClientRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteClientRequest) Descriptor deprecated

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

Deprecated: Use DeleteClientRequest.ProtoReflect.Descriptor instead.

func (*DeleteClientRequest) GetId

func (x *DeleteClientRequest) GetId() string

func (*DeleteClientRequest) ProtoMessage

func (*DeleteClientRequest) ProtoMessage()

func (*DeleteClientRequest) ProtoReflect

func (x *DeleteClientRequest) ProtoReflect() protoreflect.Message

func (*DeleteClientRequest) Reset

func (x *DeleteClientRequest) Reset()

func (*DeleteClientRequest) String

func (x *DeleteClientRequest) String() string

type DeleteClientResponse

type DeleteClientResponse struct {
	// contains filtered or unexported fields
}

func (*DeleteClientResponse) Descriptor deprecated

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

Deprecated: Use DeleteClientResponse.ProtoReflect.Descriptor instead.

func (*DeleteClientResponse) ProtoMessage

func (*DeleteClientResponse) ProtoMessage()

func (*DeleteClientResponse) ProtoReflect

func (x *DeleteClientResponse) ProtoReflect() protoreflect.Message

func (*DeleteClientResponse) Reset

func (x *DeleteClientResponse) Reset()

func (*DeleteClientResponse) String

func (x *DeleteClientResponse) String() string

type GetClientsRequest

type GetClientsRequest struct {
	Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

func (*GetClientsRequest) Descriptor deprecated

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

Deprecated: Use GetClientsRequest.ProtoReflect.Descriptor instead.

func (*GetClientsRequest) GetIds

func (x *GetClientsRequest) GetIds() []string

func (*GetClientsRequest) ProtoMessage

func (*GetClientsRequest) ProtoMessage()

func (*GetClientsRequest) ProtoReflect

func (x *GetClientsRequest) ProtoReflect() protoreflect.Message

func (*GetClientsRequest) Reset

func (x *GetClientsRequest) Reset()

func (*GetClientsRequest) String

func (x *GetClientsRequest) String() string

type GetClientsResponse

type GetClientsResponse struct {
	Clients []*Client `protobuf:"bytes,1,rep,name=clients,proto3" json:"clients,omitempty"`
	// contains filtered or unexported fields
}

func (*GetClientsResponse) Descriptor deprecated

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

Deprecated: Use GetClientsResponse.ProtoReflect.Descriptor instead.

func (*GetClientsResponse) GetClients

func (x *GetClientsResponse) GetClients() []*Client

func (*GetClientsResponse) ProtoMessage

func (*GetClientsResponse) ProtoMessage()

func (*GetClientsResponse) ProtoReflect

func (x *GetClientsResponse) ProtoReflect() protoreflect.Message

func (*GetClientsResponse) Reset

func (x *GetClientsResponse) Reset()

func (*GetClientsResponse) String

func (x *GetClientsResponse) String() string

type Int64Comp

type Int64Comp struct {
	Value int64  `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	Op    string `protobuf:"bytes,2,opt,name=op,proto3" json:"op,omitempty"`
	// contains filtered or unexported fields
}

func (*Int64Comp) Descriptor deprecated

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

Deprecated: Use Int64Comp.ProtoReflect.Descriptor instead.

func (*Int64Comp) GetOp

func (x *Int64Comp) GetOp() string

func (*Int64Comp) GetValue

func (x *Int64Comp) GetValue() int64

func (*Int64Comp) ProtoMessage

func (*Int64Comp) ProtoMessage()

func (*Int64Comp) ProtoReflect

func (x *Int64Comp) ProtoReflect() protoreflect.Message

func (*Int64Comp) Reset

func (x *Int64Comp) Reset()

func (*Int64Comp) String

func (x *Int64Comp) String() string

func (*Int64Comp) Where

func (x *Int64Comp) Where(column string, rq sq.SelectBuilder) sq.SelectBuilder

type NewClientRequest

type NewClientRequest struct {
	Name     string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Birthday int64  `protobuf:"varint,2,opt,name=birthday,proto3" json:"birthday,omitempty"` // unixnano
	Score    int64  `protobuf:"varint,3,opt,name=score,proto3" json:"score,omitempty"`
	// contains filtered or unexported fields
}

func (*NewClientRequest) Descriptor deprecated

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

Deprecated: Use NewClientRequest.ProtoReflect.Descriptor instead.

func (*NewClientRequest) GetBirthday

func (x *NewClientRequest) GetBirthday() int64

func (*NewClientRequest) GetName

func (x *NewClientRequest) GetName() string

func (*NewClientRequest) GetScore

func (x *NewClientRequest) GetScore() int64

func (*NewClientRequest) ProtoMessage

func (*NewClientRequest) ProtoMessage()

func (*NewClientRequest) ProtoReflect

func (x *NewClientRequest) ProtoReflect() protoreflect.Message

func (*NewClientRequest) Reset

func (x *NewClientRequest) Reset()

func (*NewClientRequest) String

func (x *NewClientRequest) String() string

type NewClientResponse

type NewClientResponse struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*NewClientResponse) Descriptor deprecated

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

Deprecated: Use NewClientResponse.ProtoReflect.Descriptor instead.

func (*NewClientResponse) GetId

func (x *NewClientResponse) GetId() string

func (*NewClientResponse) ProtoMessage

func (*NewClientResponse) ProtoMessage()

func (*NewClientResponse) ProtoReflect

func (x *NewClientResponse) ProtoReflect() protoreflect.Message

func (*NewClientResponse) Reset

func (x *NewClientResponse) Reset()

func (*NewClientResponse) String

func (x *NewClientResponse) String() string

type NewMatchRequest

type NewMatchRequest struct {
	ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	Score    int64  `protobuf:"varint,2,opt,name=score,proto3" json:"score,omitempty"`
	// contains filtered or unexported fields
}

func (*NewMatchRequest) Descriptor deprecated

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

Deprecated: Use NewMatchRequest.ProtoReflect.Descriptor instead.

func (*NewMatchRequest) GetClientId

func (x *NewMatchRequest) GetClientId() string

func (*NewMatchRequest) GetScore

func (x *NewMatchRequest) GetScore() int64

func (*NewMatchRequest) ProtoMessage

func (*NewMatchRequest) ProtoMessage()

func (*NewMatchRequest) ProtoReflect

func (x *NewMatchRequest) ProtoReflect() protoreflect.Message

func (*NewMatchRequest) Reset

func (x *NewMatchRequest) Reset()

func (*NewMatchRequest) String

func (x *NewMatchRequest) String() string

type NewMatchResponse

type NewMatchResponse struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*NewMatchResponse) Descriptor deprecated

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

Deprecated: Use NewMatchResponse.ProtoReflect.Descriptor instead.

func (*NewMatchResponse) GetId

func (x *NewMatchResponse) GetId() int64

func (*NewMatchResponse) ProtoMessage

func (*NewMatchResponse) ProtoMessage()

func (*NewMatchResponse) ProtoReflect

func (x *NewMatchResponse) ProtoReflect() protoreflect.Message

func (*NewMatchResponse) Reset

func (x *NewMatchResponse) Reset()

func (*NewMatchResponse) String

func (x *NewMatchResponse) String() string

type OptInt64

type OptInt64 struct {
	Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*OptInt64) Descriptor deprecated

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

Deprecated: Use OptInt64.ProtoReflect.Descriptor instead.

func (*OptInt64) GetValue

func (x *OptInt64) GetValue() int64

func (*OptInt64) ProtoMessage

func (*OptInt64) ProtoMessage()

func (*OptInt64) ProtoReflect

func (x *OptInt64) ProtoReflect() protoreflect.Message

func (*OptInt64) Reset

func (x *OptInt64) Reset()

func (*OptInt64) String

func (x *OptInt64) String() string

type OptString

type OptString struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*OptString) Descriptor deprecated

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

Deprecated: Use OptString.ProtoReflect.Descriptor instead.

func (*OptString) GetValue

func (x *OptString) GetValue() string

func (*OptString) ProtoMessage

func (*OptString) ProtoMessage()

func (*OptString) ProtoReflect

func (x *OptString) ProtoReflect() protoreflect.Message

func (*OptString) Reset

func (x *OptString) Reset()

func (*OptString) String

func (x *OptString) String() string

type QueryClientsRequest

type QueryClientsRequest struct {
	Id       *OptString `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name     *OptString `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Birthday *Int64Comp `protobuf:"bytes,3,opt,name=birthday,proto3" json:"birthday,omitempty"`
	Score    *Int64Comp `protobuf:"bytes,4,opt,name=score,proto3" json:"score,omitempty"` // FIXME: adicionar created_at
	// contains filtered or unexported fields
}

func (*QueryClientsRequest) Descriptor deprecated

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

Deprecated: Use QueryClientsRequest.ProtoReflect.Descriptor instead.

func (*QueryClientsRequest) GetBirthday

func (x *QueryClientsRequest) GetBirthday() *Int64Comp

func (*QueryClientsRequest) GetId

func (x *QueryClientsRequest) GetId() *OptString

func (*QueryClientsRequest) GetName

func (x *QueryClientsRequest) GetName() *OptString

func (*QueryClientsRequest) GetScore

func (x *QueryClientsRequest) GetScore() *Int64Comp

func (*QueryClientsRequest) ProtoMessage

func (*QueryClientsRequest) ProtoMessage()

func (*QueryClientsRequest) ProtoReflect

func (x *QueryClientsRequest) ProtoReflect() protoreflect.Message

func (*QueryClientsRequest) Reset

func (x *QueryClientsRequest) Reset()

func (*QueryClientsRequest) String

func (x *QueryClientsRequest) String() string

type QueryClientsResponse

type QueryClientsResponse struct {
	Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryClientsResponse) Descriptor deprecated

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

Deprecated: Use QueryClientsResponse.ProtoReflect.Descriptor instead.

func (*QueryClientsResponse) GetIds

func (x *QueryClientsResponse) GetIds() []string

func (*QueryClientsResponse) ProtoMessage

func (*QueryClientsResponse) ProtoMessage()

func (*QueryClientsResponse) ProtoReflect

func (x *QueryClientsResponse) ProtoReflect() protoreflect.Message

func (*QueryClientsResponse) Reset

func (x *QueryClientsResponse) Reset()

func (*QueryClientsResponse) String

func (x *QueryClientsResponse) String() string

type SortRequest

type SortRequest struct {
	Items            []string `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	RemoveDuplicates bool     `protobuf:"varint,2,opt,name=remove_duplicates,json=removeDuplicates,proto3" json:"remove_duplicates,omitempty"`
	// contains filtered or unexported fields
}

func (*SortRequest) Descriptor deprecated

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

Deprecated: Use SortRequest.ProtoReflect.Descriptor instead.

func (*SortRequest) GetItems

func (x *SortRequest) GetItems() []string

func (*SortRequest) GetRemoveDuplicates

func (x *SortRequest) GetRemoveDuplicates() bool

func (*SortRequest) ProtoMessage

func (*SortRequest) ProtoMessage()

func (*SortRequest) ProtoReflect

func (x *SortRequest) ProtoReflect() protoreflect.Message

func (*SortRequest) Reset

func (x *SortRequest) Reset()

func (*SortRequest) String

func (x *SortRequest) String() string

type SortResponse

type SortResponse struct {
	Items []string `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*SortResponse) Descriptor deprecated

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

Deprecated: Use SortResponse.ProtoReflect.Descriptor instead.

func (*SortResponse) GetItems

func (x *SortResponse) GetItems() []string

func (*SortResponse) ProtoMessage

func (*SortResponse) ProtoMessage()

func (*SortResponse) ProtoReflect

func (x *SortResponse) ProtoReflect() protoreflect.Message

func (*SortResponse) Reset

func (x *SortResponse) Reset()

func (*SortResponse) String

func (x *SortResponse) String() string

type UnimplementedClientsServiceServer

type UnimplementedClientsServiceServer struct {
}

UnimplementedClientsServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedClientsServiceServer) DeleteAllClients

func (*UnimplementedClientsServiceServer) DeleteClient

func (*UnimplementedClientsServiceServer) GetClients

func (*UnimplementedClientsServiceServer) NewClient

func (*UnimplementedClientsServiceServer) NewMatch

func (*UnimplementedClientsServiceServer) QueryClients

func (*UnimplementedClientsServiceServer) Sort

Jump to

Keyboard shortcuts

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