infos

package
v0.0.0-...-dd48380 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_infos_proto protoreflect.FileDescriptor
View Source
var Infos_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "infos.Infos",
	HandlerType: (*InfosServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "LogInfo",
			Handler:    _Infos_LogInfo_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "infos.proto",
}

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

Functions

func RegisterInfosServer

func RegisterInfosServer(s grpc.ServiceRegistrar, srv InfosServer)

Types

type Info

type Info struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Data string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*Info) Descriptor deprecated

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

Deprecated: Use Info.ProtoReflect.Descriptor instead.

func (*Info) GetData

func (x *Info) GetData() string

func (*Info) GetName

func (x *Info) GetName() string

func (*Info) ProtoMessage

func (*Info) ProtoMessage()

func (*Info) ProtoReflect

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

func (*Info) Reset

func (x *Info) Reset()

func (*Info) String

func (x *Info) String() string

type InfoRequest

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

func (*InfoRequest) Descriptor deprecated

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

Deprecated: Use InfoRequest.ProtoReflect.Descriptor instead.

func (*InfoRequest) GetInfo

func (x *InfoRequest) GetInfo() *Info

func (*InfoRequest) ProtoMessage

func (*InfoRequest) ProtoMessage()

func (*InfoRequest) ProtoReflect

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

func (*InfoRequest) Reset

func (x *InfoRequest) Reset()

func (*InfoRequest) String

func (x *InfoRequest) String() string

type InfoResponse

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

func (*InfoResponse) Descriptor deprecated

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

Deprecated: Use InfoResponse.ProtoReflect.Descriptor instead.

func (*InfoResponse) GetResult

func (x *InfoResponse) GetResult() string

func (*InfoResponse) ProtoMessage

func (*InfoResponse) ProtoMessage()

func (*InfoResponse) ProtoReflect

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

func (*InfoResponse) Reset

func (x *InfoResponse) Reset()

func (*InfoResponse) String

func (x *InfoResponse) String() string

type InfosClient

type InfosClient interface {
	LogInfo(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*InfoResponse, error)
}

InfosClient is the client API for Infos 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 NewInfosClient

func NewInfosClient(cc grpc.ClientConnInterface) InfosClient

type InfosServer

type InfosServer interface {
	LogInfo(context.Context, *InfoRequest) (*InfoResponse, error)
	// contains filtered or unexported methods
}

InfosServer is the server API for Infos service. All implementations must embed UnimplementedInfosServer for forward compatibility

type UnimplementedInfosServer

type UnimplementedInfosServer struct {
}

UnimplementedInfosServer must be embedded to have forward compatible implementations.

func (UnimplementedInfosServer) LogInfo

type UnsafeInfosServer

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

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

Jump to

Keyboard shortcuts

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