proto

package
v0.0.0-...-c0f29ca Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2020 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_common_proto protoreflect.FileDescriptor

Functions

func BetasToNative

func BetasToNative(in []*Beta) []*model.Beta

func RegisterBetaServiceServer

func RegisterBetaServiceServer(s *grpc.Server, srv BetaServiceServer)

Types

type Beta

type Beta struct {
	UniqueID string `protobuf:"bytes,1,opt,name=uniqueID,proto3" json:"uniqueID,omitempty"`
	Feature  string `protobuf:"bytes,2,opt,name=feature,proto3" json:"feature,omitempty"`
	Done     bool   `protobuf:"varint,3,opt,name=done,proto3" json:"done,omitempty"`
	// contains filtered or unexported fields
}

func NativeToBetas

func NativeToBetas(native []*model.Beta) []*Beta

func (*Beta) Descriptor deprecated

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

Deprecated: Use Beta.ProtoReflect.Descriptor instead.

func (*Beta) FromNative

func (m *Beta) FromNative(n *model.Beta) *Beta

func (*Beta) GetDone

func (x *Beta) GetDone() bool

func (*Beta) GetFeature

func (x *Beta) GetFeature() string

func (*Beta) GetUniqueID

func (x *Beta) GetUniqueID() string

func (*Beta) ProtoMessage

func (*Beta) ProtoMessage()

func (*Beta) ProtoReflect

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

func (*Beta) Reset

func (x *Beta) Reset()

func (*Beta) String

func (x *Beta) String() string

func (*Beta) ToNative

func (m *Beta) ToNative() *model.Beta

type BetaFilter

type BetaFilter struct {
	BetaID        []string          `protobuf:"bytes,1,rep,name=BetaID,proto3" json:"BetaID,omitempty"`
	RequestQuery  map[string]string `` /* 165-byte string literal not displayed */
	RequestParams *RequestParams    `protobuf:"bytes,3,opt,name=RequestParams,proto3" json:"RequestParams,omitempty"`
	// contains filtered or unexported fields
}

func (*BetaFilter) Descriptor deprecated

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

Deprecated: Use BetaFilter.ProtoReflect.Descriptor instead.

func (*BetaFilter) GetBetaID

func (x *BetaFilter) GetBetaID() []string

func (*BetaFilter) GetRequestParams

func (x *BetaFilter) GetRequestParams() *RequestParams

func (*BetaFilter) GetRequestQuery

func (x *BetaFilter) GetRequestQuery() map[string]string

func (*BetaFilter) ProtoMessage

func (*BetaFilter) ProtoMessage()

func (*BetaFilter) ProtoReflect

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

func (*BetaFilter) Reset

func (x *BetaFilter) Reset()

func (*BetaFilter) String

func (x *BetaFilter) String() string

type BetaInput

type BetaInput struct {
	Betas         []*Beta        `protobuf:"bytes,1,rep,name=Betas,proto3" json:"Betas,omitempty"`
	RequestParams *RequestParams `protobuf:"bytes,2,opt,name=RequestParams,proto3" json:"RequestParams,omitempty"`
	// contains filtered or unexported fields
}

func (*BetaInput) Descriptor deprecated

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

Deprecated: Use BetaInput.ProtoReflect.Descriptor instead.

func (*BetaInput) GetBetas

func (x *BetaInput) GetBetas() []*Beta

func (*BetaInput) GetRequestParams

func (x *BetaInput) GetRequestParams() *RequestParams

func (*BetaInput) ProtoMessage

func (*BetaInput) ProtoMessage()

func (*BetaInput) ProtoReflect

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

func (*BetaInput) Reset

func (x *BetaInput) Reset()

func (*BetaInput) String

func (x *BetaInput) String() string

type BetaResponse

type BetaResponse struct {
	Betas []*Beta `protobuf:"bytes,1,rep,name=Betas,proto3" json:"Betas,omitempty"`
	Count int64   `protobuf:"varint,2,opt,name=Count,proto3" json:"Count,omitempty"`
	// contains filtered or unexported fields
}

func (*BetaResponse) Descriptor deprecated

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

Deprecated: Use BetaResponse.ProtoReflect.Descriptor instead.

func (*BetaResponse) GetBetas

func (x *BetaResponse) GetBetas() []*Beta

func (*BetaResponse) GetCount

func (x *BetaResponse) GetCount() int64

func (*BetaResponse) ProtoMessage

func (*BetaResponse) ProtoMessage()

func (*BetaResponse) ProtoReflect

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

func (*BetaResponse) Reset

func (x *BetaResponse) Reset()

func (*BetaResponse) String

func (x *BetaResponse) String() string

type BetaServiceClient

type BetaServiceClient interface {
	GetBetas(ctx context.Context, in *BetaFilter, opts ...grpc.CallOption) (*BetaResponse, error)
	CountBetas(ctx context.Context, in *BetaFilter, opts ...grpc.CallOption) (*BetaResponse, error)
	AddBetas(ctx context.Context, in *BetaInput, opts ...grpc.CallOption) (*BetaResponse, error)
	EditBetas(ctx context.Context, in *BetaInput, opts ...grpc.CallOption) (*BetaResponse, error)
}

BetaServiceClient is the client API for BetaService service.

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

type BetaServiceServer

type BetaServiceServer interface {
	GetBetas(context.Context, *BetaFilter) (*BetaResponse, error)
	CountBetas(context.Context, *BetaFilter) (*BetaResponse, error)
	AddBetas(context.Context, *BetaInput) (*BetaResponse, error)
	EditBetas(context.Context, *BetaInput) (*BetaResponse, error)
}

BetaServiceServer is the server API for BetaService service.

type RequestParams

type RequestParams struct {
	Limit         int32                 `protobuf:"varint,1,opt,name=Limit,proto3" json:"Limit,omitempty"`
	Offset        int32                 `protobuf:"varint,2,opt,name=Offset,proto3" json:"Offset,omitempty"`
	SortBy        *wrappers.StringValue `protobuf:"bytes,3,opt,name=SortBy,proto3" json:"SortBy,omitempty"`
	SortDirection *wrappers.StringValue `protobuf:"bytes,4,opt,name=SortDirection,proto3" json:"SortDirection,omitempty"`
	// contains filtered or unexported fields
}

func (*RequestParams) Descriptor deprecated

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

Deprecated: Use RequestParams.ProtoReflect.Descriptor instead.

func (RequestParams) FromNative

func (m RequestParams) FromNative(n *meta.RequestParams) *RequestParams

func (*RequestParams) GetLimit

func (x *RequestParams) GetLimit() int32

func (*RequestParams) GetOffset

func (x *RequestParams) GetOffset() int32

func (*RequestParams) GetSortBy

func (x *RequestParams) GetSortBy() *wrappers.StringValue

func (*RequestParams) GetSortDirection

func (x *RequestParams) GetSortDirection() *wrappers.StringValue

func (*RequestParams) ProtoMessage

func (*RequestParams) ProtoMessage()

func (*RequestParams) ProtoReflect

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

func (*RequestParams) Reset

func (x *RequestParams) Reset()

func (*RequestParams) String

func (x *RequestParams) String() string

func (*RequestParams) ToNative

func (m *RequestParams) ToNative() *meta.RequestParams

type UnimplementedBetaServiceServer

type UnimplementedBetaServiceServer struct {
}

UnimplementedBetaServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedBetaServiceServer) AddBetas

func (*UnimplementedBetaServiceServer) CountBetas

func (*UnimplementedBetaServiceServer) EditBetas

func (*UnimplementedBetaServiceServer) GetBetas

Jump to

Keyboard shortcuts

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