roller

package
v0.0.0-...-5fcaa8f Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_internal_grpc_proto_roller_proto protoreflect.FileDescriptor
View Source
var Roller_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "google.rpc.Roller",
	HandlerType: (*RollerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Ping",
			Handler:    _Roller_Ping_Handler,
		},
		{
			MethodName: "Roll",
			Handler:    _Roller_Roll_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "internal/grpc/proto/roller.proto",
}

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

Functions

func RegisterRollerServer

func RegisterRollerServer(s grpc.ServiceRegistrar, srv RollerServer)

Types

type MyStatus

type MyStatus struct {
	Code    int32       `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string      `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Details []*any1.Any `protobuf:"bytes,3,rep,name=details,proto3" json:"details,omitempty"`
	// contains filtered or unexported fields
}

func (*MyStatus) Descriptor deprecated

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

Deprecated: Use MyStatus.ProtoReflect.Descriptor instead.

func (*MyStatus) GetCode

func (x *MyStatus) GetCode() int32

func (*MyStatus) GetDetails

func (x *MyStatus) GetDetails() []*any1.Any

func (*MyStatus) GetMessage

func (x *MyStatus) GetMessage() string

func (*MyStatus) ProtoMessage

func (*MyStatus) ProtoMessage()

func (*MyStatus) ProtoReflect

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

func (*MyStatus) Reset

func (x *MyStatus) Reset()

func (*MyStatus) String

func (x *MyStatus) String() string

type PingRequest

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

func (*PingRequest) Descriptor deprecated

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

Deprecated: Use PingRequest.ProtoReflect.Descriptor instead.

func (*PingRequest) ProtoMessage

func (*PingRequest) ProtoMessage()

func (*PingRequest) ProtoReflect

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

func (*PingRequest) Reset

func (x *PingRequest) Reset()

func (*PingRequest) String

func (x *PingRequest) String() string

type PingResponse

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

func (*PingResponse) Descriptor deprecated

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

Deprecated: Use PingResponse.ProtoReflect.Descriptor instead.

func (*PingResponse) GetPing

func (x *PingResponse) GetPing() string

func (*PingResponse) ProtoMessage

func (*PingResponse) ProtoMessage()

func (*PingResponse) ProtoReflect

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

func (*PingResponse) Reset

func (x *PingResponse) Reset()

func (*PingResponse) String

func (x *PingResponse) String() string

type RollData

type RollData struct {
	Literal  string `protobuf:"bytes,1,opt,name=literal,proto3" json:"literal,omitempty"`
	Metadata []byte `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` // passing the metadata as serialized json
	// contains filtered or unexported fields
}

func (*RollData) Descriptor deprecated

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

Deprecated: Use RollData.ProtoReflect.Descriptor instead.

func (*RollData) GetLiteral

func (x *RollData) GetLiteral() string

func (*RollData) GetMetadata

func (x *RollData) GetMetadata() []byte

func (*RollData) ProtoMessage

func (*RollData) ProtoMessage()

func (*RollData) ProtoReflect

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

func (*RollData) Reset

func (x *RollData) Reset()

func (*RollData) String

func (x *RollData) String() string

type RollRequest

type RollRequest struct {
	DiceString string `protobuf:"bytes,1,opt,name=dice_string,json=diceString,proto3" json:"dice_string,omitempty"`
	CallerId   string `protobuf:"bytes,2,opt,name=caller_id,json=callerId,proto3" json:"caller_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RollRequest) Descriptor deprecated

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

Deprecated: Use RollRequest.ProtoReflect.Descriptor instead.

func (*RollRequest) GetCallerId

func (x *RollRequest) GetCallerId() string

func (*RollRequest) GetDiceString

func (x *RollRequest) GetDiceString() string

func (*RollRequest) ProtoMessage

func (*RollRequest) ProtoMessage()

func (*RollRequest) ProtoReflect

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

func (*RollRequest) Reset

func (x *RollRequest) Reset()

func (*RollRequest) String

func (x *RollRequest) String() string

type RollResponse

type RollResponse struct {

	// Types that are assignable to Message:
	//
	//	*RollResponse_Data
	//	*RollResponse_Status
	Message isRollResponse_Message `protobuf_oneof:"message"`
	// contains filtered or unexported fields
}

func (*RollResponse) Descriptor deprecated

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

Deprecated: Use RollResponse.ProtoReflect.Descriptor instead.

func (*RollResponse) GetData

func (x *RollResponse) GetData() *RollResponseData

func (*RollResponse) GetMessage

func (m *RollResponse) GetMessage() isRollResponse_Message

func (*RollResponse) GetStatus

func (x *RollResponse) GetStatus() *MyStatus

func (*RollResponse) ProtoMessage

func (*RollResponse) ProtoMessage()

func (*RollResponse) ProtoReflect

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

func (*RollResponse) Reset

func (x *RollResponse) Reset()

func (*RollResponse) String

func (x *RollResponse) String() string

type RollResponseData

type RollResponseData struct {
	Data     *RollData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	CallerId string    `protobuf:"bytes,2,opt,name=caller_id,json=callerId,proto3" json:"caller_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RollResponseData) Descriptor deprecated

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

Deprecated: Use RollResponseData.ProtoReflect.Descriptor instead.

func (*RollResponseData) GetCallerId

func (x *RollResponseData) GetCallerId() string

func (*RollResponseData) GetData

func (x *RollResponseData) GetData() *RollData

func (*RollResponseData) ProtoMessage

func (*RollResponseData) ProtoMessage()

func (*RollResponseData) ProtoReflect

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

func (*RollResponseData) Reset

func (x *RollResponseData) Reset()

func (*RollResponseData) String

func (x *RollResponseData) String() string

type RollResponse_Data

type RollResponse_Data struct {
	Data *RollResponseData `protobuf:"bytes,1,opt,name=data,proto3,oneof"`
}

type RollResponse_Status

type RollResponse_Status struct {
	Status *MyStatus `protobuf:"bytes,2,opt,name=status,proto3,oneof"`
}

type RollerClient

type RollerClient interface {
	Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error)
	Roll(ctx context.Context, in *RollRequest, opts ...grpc.CallOption) (*RollResponse, error)
}

RollerClient is the client API for Roller 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.

func NewRollerClient

func NewRollerClient(cc grpc.ClientConnInterface) RollerClient

type RollerServer

type RollerServer interface {
	Ping(context.Context, *PingRequest) (*PingResponse, error)
	Roll(context.Context, *RollRequest) (*RollResponse, error)
	// contains filtered or unexported methods
}

RollerServer is the server API for Roller service. All implementations must embed UnimplementedRollerServer for forward compatibility

type UnimplementedRollerServer

type UnimplementedRollerServer struct {
}

UnimplementedRollerServer must be embedded to have forward compatible implementations.

func (UnimplementedRollerServer) Ping

func (UnimplementedRollerServer) Roll

type UnsafeRollerServer

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

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

Jump to

Keyboard shortcuts

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