pb

package
v0.0.0-...-53b9707 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_kataposis_proto protoreflect.FileDescriptor
View Source
var Logger_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "logger.Logger",
	HandlerType: (*LoggerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Log",
			Handler:    _Logger_Log_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "kataposis.proto",
}

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

Functions

func RegisterLoggerServer

func RegisterLoggerServer(s grpc.ServiceRegistrar, srv LoggerServer)

Types

type LoggerClient

type LoggerClient interface {
	Log(ctx context.Context, in *LoggerRequest, opts ...grpc.CallOption) (*LoggerResponse, error)
}

LoggerClient is the client API for Logger 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 NewLoggerClient

func NewLoggerClient(cc grpc.ClientConnInterface) LoggerClient

type LoggerRequest

type LoggerRequest struct {
	ResourceID string `protobuf:"bytes,4,opt,name=resourceID,proto3" json:"resourceID,omitempty"`
	Level      string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"`
	Msg        string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Timestamp  string `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*LoggerRequest) Descriptor deprecated

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

Deprecated: Use LoggerRequest.ProtoReflect.Descriptor instead.

func (*LoggerRequest) GetLevel

func (x *LoggerRequest) GetLevel() string

func (*LoggerRequest) GetMsg

func (x *LoggerRequest) GetMsg() string

func (*LoggerRequest) GetResourceID

func (x *LoggerRequest) GetResourceID() string

func (*LoggerRequest) GetTimestamp

func (x *LoggerRequest) GetTimestamp() string

func (*LoggerRequest) ProtoMessage

func (*LoggerRequest) ProtoMessage()

func (*LoggerRequest) ProtoReflect

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

func (*LoggerRequest) Reset

func (x *LoggerRequest) Reset()

func (*LoggerRequest) String

func (x *LoggerRequest) String() string

type LoggerResponse

type LoggerResponse struct {
	Error *string `protobuf:"bytes,1,opt,name=error,proto3,oneof" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*LoggerResponse) Descriptor deprecated

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

Deprecated: Use LoggerResponse.ProtoReflect.Descriptor instead.

func (*LoggerResponse) GetError

func (x *LoggerResponse) GetError() string

func (*LoggerResponse) ProtoMessage

func (*LoggerResponse) ProtoMessage()

func (*LoggerResponse) ProtoReflect

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

func (*LoggerResponse) Reset

func (x *LoggerResponse) Reset()

func (*LoggerResponse) String

func (x *LoggerResponse) String() string

type LoggerServer

type LoggerServer interface {
	Log(context.Context, *LoggerRequest) (*LoggerResponse, error)
	// contains filtered or unexported methods
}

LoggerServer is the server API for Logger service. All implementations must embed UnimplementedLoggerServer for forward compatibility

type UnimplementedLoggerServer

type UnimplementedLoggerServer struct {
}

UnimplementedLoggerServer must be embedded to have forward compatible implementations.

func (UnimplementedLoggerServer) Log

type UnsafeLoggerServer

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

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

Jump to

Keyboard shortcuts

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