gen

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LogEntry_Level_name = map[int32]string{
		0: "none",
		1: "debug",
		2: "info",
		3: "warn",
		4: "error",
		5: "fatal",
	}
	LogEntry_Level_value = map[string]int32{
		"none":  0,
		"debug": 1,
		"info":  2,
		"warn":  3,
		"error": 4,
		"fatal": 5,
	}
)

Enum value maps for LogEntry_Level.

View Source
var File_spec_api_proto protoreflect.FileDescriptor

Functions

func RegisterLogServiceServer

func RegisterLogServiceServer(s *grpc.Server, srv LogServiceServer)

Types

type LogEntry

type LogEntry struct {
	Timestamp   *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Level       LogEntry_Level         `protobuf:"varint,2,opt,name=level,proto3,enum=vk.cloud.logging.v1.api.LogEntry_Level" json:"level,omitempty"`
	Message     string                 `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	JsonPayload string                 `protobuf:"bytes,4,opt,name=json_payload,json=jsonPayload,proto3" json:"json_payload,omitempty"`
	// contains filtered or unexported fields
}

func (*LogEntry) Descriptor deprecated

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

Deprecated: Use LogEntry.ProtoReflect.Descriptor instead.

func (*LogEntry) GetJsonPayload

func (x *LogEntry) GetJsonPayload() string

func (*LogEntry) GetLevel

func (x *LogEntry) GetLevel() LogEntry_Level

func (*LogEntry) GetMessage

func (x *LogEntry) GetMessage() string

func (*LogEntry) GetTimestamp

func (x *LogEntry) GetTimestamp() *timestamppb.Timestamp

func (*LogEntry) ProtoMessage

func (*LogEntry) ProtoMessage()

func (*LogEntry) ProtoReflect

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

func (*LogEntry) Reset

func (x *LogEntry) Reset()

func (*LogEntry) String

func (x *LogEntry) String() string

func (*LogEntry) Validate

func (m *LogEntry) Validate() error

Validate checks the field values on LogEntry with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type LogEntryValidationError

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

LogEntryValidationError is the validation error returned by LogEntry.Validate if the designated constraints aren't met.

func (LogEntryValidationError) Cause

func (e LogEntryValidationError) Cause() error

Cause function returns cause value.

func (LogEntryValidationError) Error

func (e LogEntryValidationError) Error() string

Error satisfies the builtin error interface

func (LogEntryValidationError) ErrorName

func (e LogEntryValidationError) ErrorName() string

ErrorName returns error name.

func (LogEntryValidationError) Field

func (e LogEntryValidationError) Field() string

Field function returns field value.

func (LogEntryValidationError) Key

func (e LogEntryValidationError) Key() bool

Key function returns key value.

func (LogEntryValidationError) Reason

func (e LogEntryValidationError) Reason() string

Reason function returns reason value.

type LogEntry_Level

type LogEntry_Level int32
const (
	LogEntry_none  LogEntry_Level = 0
	LogEntry_debug LogEntry_Level = 1
	LogEntry_info  LogEntry_Level = 2
	LogEntry_warn  LogEntry_Level = 3
	LogEntry_error LogEntry_Level = 4
	LogEntry_fatal LogEntry_Level = 5
)

func (LogEntry_Level) Descriptor

func (LogEntry_Level) Enum

func (x LogEntry_Level) Enum() *LogEntry_Level

func (LogEntry_Level) EnumDescriptor deprecated

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

Deprecated: Use LogEntry_Level.Descriptor instead.

func (LogEntry_Level) Number

func (LogEntry_Level) String

func (x LogEntry_Level) String() string

func (LogEntry_Level) Type

type LogServiceClient

type LogServiceClient interface {
	Write(ctx context.Context, in *WriteRequest, opts ...grpc.CallOption) (*WriteResponse, error)
}

LogServiceClient is the client API for LogService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewLogServiceClient

func NewLogServiceClient(cc grpc.ClientConnInterface) LogServiceClient

type LogServiceServer

type LogServiceServer interface {
	Write(context.Context, *WriteRequest) (*WriteResponse, error)
}

LogServiceServer is the server API for LogService service.

type UnimplementedLogServiceServer

type UnimplementedLogServiceServer struct {
}

UnimplementedLogServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedLogServiceServer) Write

type WriteRequest

type WriteRequest struct {
	ServiceId string      `protobuf:"bytes,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	GroupId   string      `protobuf:"bytes,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	StreamId  string      `protobuf:"bytes,3,opt,name=stream_id,json=streamId,proto3" json:"stream_id,omitempty"`
	Entries   []*LogEntry `protobuf:"bytes,4,rep,name=entries,proto3" json:"entries,omitempty"`
	Internal  bool        `protobuf:"varint,5,opt,name=internal,proto3" json:"internal,omitempty"`
	// contains filtered or unexported fields
}

Also needs 'token' field in metadata

func (*WriteRequest) Descriptor deprecated

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

Deprecated: Use WriteRequest.ProtoReflect.Descriptor instead.

func (*WriteRequest) GetEntries

func (x *WriteRequest) GetEntries() []*LogEntry

func (*WriteRequest) GetGroupId

func (x *WriteRequest) GetGroupId() string

func (*WriteRequest) GetInternal

func (x *WriteRequest) GetInternal() bool

func (*WriteRequest) GetServiceId

func (x *WriteRequest) GetServiceId() string

func (*WriteRequest) GetStreamId

func (x *WriteRequest) GetStreamId() string

func (*WriteRequest) ProtoMessage

func (*WriteRequest) ProtoMessage()

func (*WriteRequest) ProtoReflect

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

func (*WriteRequest) Reset

func (x *WriteRequest) Reset()

func (*WriteRequest) String

func (x *WriteRequest) String() string

func (*WriteRequest) Validate

func (m *WriteRequest) Validate() error

Validate checks the field values on WriteRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type WriteRequestValidationError

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

WriteRequestValidationError is the validation error returned by WriteRequest.Validate if the designated constraints aren't met.

func (WriteRequestValidationError) Cause

Cause function returns cause value.

func (WriteRequestValidationError) Error

Error satisfies the builtin error interface

func (WriteRequestValidationError) ErrorName

func (e WriteRequestValidationError) ErrorName() string

ErrorName returns error name.

func (WriteRequestValidationError) Field

Field function returns field value.

func (WriteRequestValidationError) Key

Key function returns key value.

func (WriteRequestValidationError) Reason

Reason function returns reason value.

type WriteResponse

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

func (*WriteResponse) Descriptor deprecated

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

Deprecated: Use WriteResponse.ProtoReflect.Descriptor instead.

func (*WriteResponse) ProtoMessage

func (*WriteResponse) ProtoMessage()

func (*WriteResponse) ProtoReflect

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

func (*WriteResponse) Reset

func (x *WriteResponse) Reset()

func (*WriteResponse) String

func (x *WriteResponse) String() string

func (*WriteResponse) Validate

func (m *WriteResponse) Validate() error

Validate checks the field values on WriteResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type WriteResponseValidationError

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

WriteResponseValidationError is the validation error returned by WriteResponse.Validate if the designated constraints aren't met.

func (WriteResponseValidationError) Cause

Cause function returns cause value.

func (WriteResponseValidationError) Error

Error satisfies the builtin error interface

func (WriteResponseValidationError) ErrorName

func (e WriteResponseValidationError) ErrorName() string

ErrorName returns error name.

func (WriteResponseValidationError) Field

Field function returns field value.

func (WriteResponseValidationError) Key

Key function returns key value.

func (WriteResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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