donationsDb

package
v0.0.0-...-7e68a78 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DBResponse_Status_name = map[int32]string{
		0: "ACCEPTED",
		1: "WRONGID",
		2: "INTERNALERROR",
	}
	DBResponse_Status_value = map[string]int32{
		"ACCEPTED":      0,
		"WRONGID":       1,
		"INTERNALERROR": 2,
	}
)

Enum value maps for DBResponse_Status.

View Source
var DonationsDb_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "donationsDb.DonationsDb",
	HandlerType: (*DonationsDbServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "RegisterMessage",
			Handler:    _DonationsDb_RegisterMessage_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/proto/donations.proto",
}

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

View Source
var File_api_proto_donations_proto protoreflect.FileDescriptor

Functions

func RegisterDonationsDbServer

func RegisterDonationsDbServer(s grpc.ServiceRegistrar, srv DonationsDbServer)

Types

type DBResponse

type DBResponse struct {
	Status DBResponse_Status `protobuf:"varint,1,opt,name=status,proto3,enum=donationsDb.DBResponse_Status" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*DBResponse) Descriptor deprecated

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

Deprecated: Use DBResponse.ProtoReflect.Descriptor instead.

func (*DBResponse) GetStatus

func (x *DBResponse) GetStatus() DBResponse_Status

func (*DBResponse) ProtoMessage

func (*DBResponse) ProtoMessage()

func (*DBResponse) ProtoReflect

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

func (*DBResponse) Reset

func (x *DBResponse) Reset()

func (*DBResponse) String

func (x *DBResponse) String() string

type DBResponse_Status

type DBResponse_Status int32
const (
	DBResponse_ACCEPTED      DBResponse_Status = 0
	DBResponse_WRONGID       DBResponse_Status = 1
	DBResponse_INTERNALERROR DBResponse_Status = 2
)

func (DBResponse_Status) Descriptor

func (DBResponse_Status) Enum

func (DBResponse_Status) EnumDescriptor deprecated

func (DBResponse_Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use DBResponse_Status.Descriptor instead.

func (DBResponse_Status) Number

func (DBResponse_Status) String

func (x DBResponse_Status) String() string

func (DBResponse_Status) Type

type DonationsDbClient

type DonationsDbClient interface {
	RegisterMessage(ctx context.Context, in *MessageArgs, opts ...grpc.CallOption) (*DBResponse, error)
}

DonationsDbClient is the client API for DonationsDb 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 DonationsDbServer

type DonationsDbServer interface {
	RegisterMessage(context.Context, *MessageArgs) (*DBResponse, error)
	// contains filtered or unexported methods
}

DonationsDbServer is the server API for DonationsDb service. All implementations must embed UnimplementedDonationsDbServer for forward compatibility

type MessageArgs

type MessageArgs struct {
	StreamerId int32  `protobuf:"varint,1,opt,name=streamerId,proto3" json:"streamerId,omitempty"`
	Amount     int32  `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	Sender     string `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"`
	Message    string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*MessageArgs) Descriptor deprecated

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

Deprecated: Use MessageArgs.ProtoReflect.Descriptor instead.

func (*MessageArgs) GetAmount

func (x *MessageArgs) GetAmount() int32

func (*MessageArgs) GetMessage

func (x *MessageArgs) GetMessage() string

func (*MessageArgs) GetSender

func (x *MessageArgs) GetSender() string

func (*MessageArgs) GetStreamerId

func (x *MessageArgs) GetStreamerId() int32

func (*MessageArgs) ProtoMessage

func (*MessageArgs) ProtoMessage()

func (*MessageArgs) ProtoReflect

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

func (*MessageArgs) Reset

func (x *MessageArgs) Reset()

func (*MessageArgs) String

func (x *MessageArgs) String() string

type UnimplementedDonationsDbServer

type UnimplementedDonationsDbServer struct {
}

UnimplementedDonationsDbServer must be embedded to have forward compatible implementations.

func (UnimplementedDonationsDbServer) RegisterMessage

type UnsafeDonationsDbServer

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

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

Jump to

Keyboard shortcuts

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