v1

package
v0.3.0-alpha2 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pkg_proto_round_v1_round_proto protoreflect.FileDescriptor
View Source
var RoundService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pkg.proto.round.v1.RoundService",
	HandlerType: (*RoundServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetLastNonElapsingRound",
			Handler:    _RoundService_GetLastNonElapsingRound_Handler,
		},
		{
			MethodName: "GetAll",
			Handler:    _RoundService_GetAll_Handler,
		},
		{
			MethodName: "GetByID",
			Handler:    _RoundService_GetByID_Handler,
		},
		{
			MethodName: "GetLastRound",
			Handler:    _RoundService_GetLastRound_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/proto/round/v1/round.proto",
}

RoundService_ServiceDesc is the grpc.ServiceDesc for RoundService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterRoundServiceServer

func RegisterRoundServiceServer(s grpc.ServiceRegistrar, srv RoundServiceServer)

Types

type GetAllRequest

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

func (*GetAllRequest) Descriptor deprecated

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

Deprecated: Use GetAllRequest.ProtoReflect.Descriptor instead.

func (*GetAllRequest) ProtoMessage

func (*GetAllRequest) ProtoMessage()

func (*GetAllRequest) ProtoReflect

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

func (*GetAllRequest) Reset

func (x *GetAllRequest) Reset()

func (*GetAllRequest) String

func (x *GetAllRequest) String() string

type GetAllResponse

type GetAllResponse struct {
	Rounds []*Round `protobuf:"bytes,1,rep,name=rounds,proto3" json:"rounds,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAllResponse) Descriptor deprecated

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

Deprecated: Use GetAllResponse.ProtoReflect.Descriptor instead.

func (*GetAllResponse) GetRounds

func (x *GetAllResponse) GetRounds() []*Round

func (*GetAllResponse) ProtoMessage

func (*GetAllResponse) ProtoMessage()

func (*GetAllResponse) ProtoReflect

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

func (*GetAllResponse) Reset

func (x *GetAllResponse) Reset()

func (*GetAllResponse) String

func (x *GetAllResponse) String() string

type GetByIDRequest

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

func (*GetByIDRequest) Descriptor deprecated

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

Deprecated: Use GetByIDRequest.ProtoReflect.Descriptor instead.

func (*GetByIDRequest) GetId

func (x *GetByIDRequest) GetId() uint64

func (*GetByIDRequest) ProtoMessage

func (*GetByIDRequest) ProtoMessage()

func (*GetByIDRequest) ProtoReflect

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

func (*GetByIDRequest) Reset

func (x *GetByIDRequest) Reset()

func (*GetByIDRequest) String

func (x *GetByIDRequest) String() string

type GetByIDResponse

type GetByIDResponse struct {
	Round *Round `protobuf:"bytes,1,opt,name=round,proto3" json:"round,omitempty"`
	// contains filtered or unexported fields
}

func (*GetByIDResponse) Descriptor deprecated

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

Deprecated: Use GetByIDResponse.ProtoReflect.Descriptor instead.

func (*GetByIDResponse) GetRound

func (x *GetByIDResponse) GetRound() *Round

func (*GetByIDResponse) ProtoMessage

func (*GetByIDResponse) ProtoMessage()

func (*GetByIDResponse) ProtoReflect

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

func (*GetByIDResponse) Reset

func (x *GetByIDResponse) Reset()

func (*GetByIDResponse) String

func (x *GetByIDResponse) String() string

type GetLastNonElapsingRoundRequest

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

func (*GetLastNonElapsingRoundRequest) Descriptor deprecated

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

Deprecated: Use GetLastNonElapsingRoundRequest.ProtoReflect.Descriptor instead.

func (*GetLastNonElapsingRoundRequest) ProtoMessage

func (*GetLastNonElapsingRoundRequest) ProtoMessage()

func (*GetLastNonElapsingRoundRequest) ProtoReflect

func (*GetLastNonElapsingRoundRequest) Reset

func (x *GetLastNonElapsingRoundRequest) Reset()

func (*GetLastNonElapsingRoundRequest) String

type GetLastNonElapsingRoundResponse

type GetLastNonElapsingRoundResponse struct {
	Round *Round `protobuf:"bytes,1,opt,name=round,proto3" json:"round,omitempty"`
	// contains filtered or unexported fields
}

func (*GetLastNonElapsingRoundResponse) Descriptor deprecated

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

Deprecated: Use GetLastNonElapsingRoundResponse.ProtoReflect.Descriptor instead.

func (*GetLastNonElapsingRoundResponse) GetRound

func (x *GetLastNonElapsingRoundResponse) GetRound() *Round

func (*GetLastNonElapsingRoundResponse) ProtoMessage

func (*GetLastNonElapsingRoundResponse) ProtoMessage()

func (*GetLastNonElapsingRoundResponse) ProtoReflect

func (*GetLastNonElapsingRoundResponse) Reset

func (*GetLastNonElapsingRoundResponse) String

type GetLastRoundRequest

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

func (*GetLastRoundRequest) Descriptor deprecated

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

Deprecated: Use GetLastRoundRequest.ProtoReflect.Descriptor instead.

func (*GetLastRoundRequest) ProtoMessage

func (*GetLastRoundRequest) ProtoMessage()

func (*GetLastRoundRequest) ProtoReflect

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

func (*GetLastRoundRequest) Reset

func (x *GetLastRoundRequest) Reset()

func (*GetLastRoundRequest) String

func (x *GetLastRoundRequest) String() string

type GetLastRoundResponse

type GetLastRoundResponse struct {
	Round *Round `protobuf:"bytes,1,opt,name=round,proto3" json:"round,omitempty"`
	// contains filtered or unexported fields
}

func (*GetLastRoundResponse) Descriptor deprecated

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

Deprecated: Use GetLastRoundResponse.ProtoReflect.Descriptor instead.

func (*GetLastRoundResponse) GetRound

func (x *GetLastRoundResponse) GetRound() *Round

func (*GetLastRoundResponse) ProtoMessage

func (*GetLastRoundResponse) ProtoMessage()

func (*GetLastRoundResponse) ProtoReflect

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

func (*GetLastRoundResponse) Reset

func (x *GetLastRoundResponse) Reset()

func (*GetLastRoundResponse) String

func (x *GetLastRoundResponse) String() string

type Round

type Round struct {
	Id     uint64                 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Start  *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start,proto3" json:"start,omitempty"`
	Note   string                 `protobuf:"bytes,3,opt,name=note,proto3" json:"note,omitempty"`
	Err    string                 `protobuf:"bytes,4,opt,name=err,proto3" json:"err,omitempty"`
	Finish *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=finish,proto3" json:"finish,omitempty"`
	Checks []*v1.Check            `protobuf:"bytes,6,rep,name=checks,proto3" json:"checks,omitempty"`
	// contains filtered or unexported fields
}

func (*Round) Descriptor deprecated

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

Deprecated: Use Round.ProtoReflect.Descriptor instead.

func (*Round) GetChecks

func (x *Round) GetChecks() []*v1.Check

func (*Round) GetErr

func (x *Round) GetErr() string

func (*Round) GetFinish

func (x *Round) GetFinish() *timestamppb.Timestamp

func (*Round) GetId

func (x *Round) GetId() uint64

func (*Round) GetNote

func (x *Round) GetNote() string

func (*Round) GetStart

func (x *Round) GetStart() *timestamppb.Timestamp

func (*Round) ProtoMessage

func (*Round) ProtoMessage()

func (*Round) ProtoReflect

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

func (*Round) Reset

func (x *Round) Reset()

func (*Round) String

func (x *Round) String() string

type RoundServiceClient

type RoundServiceClient interface {
	GetLastNonElapsingRound(ctx context.Context, in *GetLastNonElapsingRoundRequest, opts ...grpc.CallOption) (*GetLastNonElapsingRoundResponse, error)
	GetAll(ctx context.Context, in *GetAllRequest, opts ...grpc.CallOption) (*GetAllResponse, error)
	GetByID(ctx context.Context, in *GetByIDRequest, opts ...grpc.CallOption) (*GetByIDResponse, error)
	GetLastRound(ctx context.Context, in *GetLastRoundRequest, opts ...grpc.CallOption) (*GetLastRoundResponse, error)
}

RoundServiceClient is the client API for RoundService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type RoundServiceServer

type RoundServiceServer interface {
	GetLastNonElapsingRound(context.Context, *GetLastNonElapsingRoundRequest) (*GetLastNonElapsingRoundResponse, error)
	GetAll(context.Context, *GetAllRequest) (*GetAllResponse, error)
	GetByID(context.Context, *GetByIDRequest) (*GetByIDResponse, error)
	GetLastRound(context.Context, *GetLastRoundRequest) (*GetLastRoundResponse, error)
	// contains filtered or unexported methods
}

RoundServiceServer is the server API for RoundService service. All implementations must embed UnimplementedRoundServiceServer for forward compatibility

type UnimplementedRoundServiceServer

type UnimplementedRoundServiceServer struct {
}

UnimplementedRoundServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedRoundServiceServer) GetAll

func (UnimplementedRoundServiceServer) GetByID

func (UnimplementedRoundServiceServer) GetLastRound

type UnsafeRoundServiceServer

type UnsafeRoundServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeRoundServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RoundServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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