protos

package
v0.0.0-...-249cf22 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2021 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_protos_main_proto protoreflect.FileDescriptor
View Source
var Reporter_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "protos.Reporter",
	HandlerType: (*ReporterServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Report",
			Handler:    _Reporter_Report_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "protos/main.proto",
}

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

Functions

func RegisterReporterServer

func RegisterReporterServer(s grpc.ServiceRegistrar, srv ReporterServer)

Types

type ReportReply

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

func (*ReportReply) Descriptor deprecated

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

Deprecated: Use ReportReply.ProtoReflect.Descriptor instead.

func (*ReportReply) GetMessage

func (x *ReportReply) GetMessage() string

func (*ReportReply) ProtoMessage

func (*ReportReply) ProtoMessage()

func (*ReportReply) ProtoReflect

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

func (*ReportReply) Reset

func (x *ReportReply) Reset()

func (*ReportReply) String

func (x *ReportReply) String() string

type ReportRequest

type ReportRequest struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	Token   string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*ReportRequest) Descriptor deprecated

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

Deprecated: Use ReportRequest.ProtoReflect.Descriptor instead.

func (*ReportRequest) GetMessage

func (x *ReportRequest) GetMessage() string

func (*ReportRequest) GetToken

func (x *ReportRequest) GetToken() string

func (*ReportRequest) ProtoMessage

func (*ReportRequest) ProtoMessage()

func (*ReportRequest) ProtoReflect

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

func (*ReportRequest) Reset

func (x *ReportRequest) Reset()

func (*ReportRequest) String

func (x *ReportRequest) String() string

type ReporterClient

type ReporterClient interface {
	Report(ctx context.Context, in *ReportRequest, opts ...grpc.CallOption) (*ReportReply, error)
}

ReporterClient is the client API for Reporter 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 NewReporterClient

func NewReporterClient(cc grpc.ClientConnInterface) ReporterClient

type ReporterServer

type ReporterServer interface {
	Report(context.Context, *ReportRequest) (*ReportReply, error)
	// contains filtered or unexported methods
}

ReporterServer is the server API for Reporter service. All implementations must embed UnimplementedReporterServer for forward compatibility

type UnimplementedReporterServer

type UnimplementedReporterServer struct {
}

UnimplementedReporterServer must be embedded to have forward compatible implementations.

func (UnimplementedReporterServer) Report

type UnsafeReporterServer

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

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

Jump to

Keyboard shortcuts

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