Documentation ¶
Index ¶
- Variables
- func RegisterLogServiceServer(s *grpc.Server, srv LogServiceServer)
- type LogEntry
- func (*LogEntry) Descriptor() ([]byte, []int)deprecated
- func (x *LogEntry) GetJsonPayload() string
- func (x *LogEntry) GetLevel() LogEntry_Level
- func (x *LogEntry) GetMessage() string
- func (x *LogEntry) GetTimestamp() *timestamppb.Timestamp
- func (*LogEntry) ProtoMessage()
- func (x *LogEntry) ProtoReflect() protoreflect.Message
- func (x *LogEntry) Reset()
- func (x *LogEntry) String() string
- func (m *LogEntry) Validate() error
- type LogEntryValidationError
- type LogEntry_Level
- func (LogEntry_Level) Descriptor() protoreflect.EnumDescriptor
- func (x LogEntry_Level) Enum() *LogEntry_Level
- func (LogEntry_Level) EnumDescriptor() ([]byte, []int)deprecated
- func (x LogEntry_Level) Number() protoreflect.EnumNumber
- func (x LogEntry_Level) String() string
- func (LogEntry_Level) Type() protoreflect.EnumType
- type LogServiceClient
- type LogServiceServer
- type UnimplementedLogServiceServer
- type WriteRequest
- func (*WriteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WriteRequest) GetEntries() []*LogEntry
- func (x *WriteRequest) GetGroupId() string
- func (x *WriteRequest) GetInternal() bool
- func (x *WriteRequest) GetServiceId() string
- func (x *WriteRequest) GetStreamId() string
- func (*WriteRequest) ProtoMessage()
- func (x *WriteRequest) ProtoReflect() protoreflect.Message
- func (x *WriteRequest) Reset()
- func (x *WriteRequest) String() string
- func (m *WriteRequest) Validate() error
- type WriteRequestValidationError
- func (e WriteRequestValidationError) Cause() error
- func (e WriteRequestValidationError) Error() string
- func (e WriteRequestValidationError) ErrorName() string
- func (e WriteRequestValidationError) Field() string
- func (e WriteRequestValidationError) Key() bool
- func (e WriteRequestValidationError) Reason() string
- type WriteResponse
- type WriteResponseValidationError
- func (e WriteResponseValidationError) Cause() error
- func (e WriteResponseValidationError) Error() string
- func (e WriteResponseValidationError) ErrorName() string
- func (e WriteResponseValidationError) Field() string
- func (e WriteResponseValidationError) Key() bool
- func (e WriteResponseValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
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.
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) GetJsonPayload ¶
func (*LogEntry) GetLevel ¶
func (x *LogEntry) GetLevel() LogEntry_Level
func (*LogEntry) GetMessage ¶
func (*LogEntry) GetTimestamp ¶
func (x *LogEntry) GetTimestamp() *timestamppb.Timestamp
func (*LogEntry) ProtoMessage ¶
func (*LogEntry) ProtoMessage()
func (*LogEntry) ProtoReflect ¶
func (x *LogEntry) ProtoReflect() protoreflect.Message
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) Descriptor() protoreflect.EnumDescriptor
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 (x LogEntry_Level) Number() protoreflect.EnumNumber
func (LogEntry_Level) String ¶
func (x LogEntry_Level) String() string
func (LogEntry_Level) Type ¶
func (LogEntry_Level) Type() protoreflect.EnumType
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 ¶
func (*UnimplementedLogServiceServer) Write(context.Context, *WriteRequest) (*WriteResponse, error)
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 ¶
func (e WriteRequestValidationError) Cause() error
Cause function returns cause value.
func (WriteRequestValidationError) Error ¶
func (e WriteRequestValidationError) Error() string
Error satisfies the builtin error interface
func (WriteRequestValidationError) ErrorName ¶
func (e WriteRequestValidationError) ErrorName() string
ErrorName returns error name.
func (WriteRequestValidationError) Field ¶
func (e WriteRequestValidationError) Field() string
Field function returns field value.
func (WriteRequestValidationError) Key ¶
func (e WriteRequestValidationError) Key() bool
Key function returns key value.
func (WriteRequestValidationError) Reason ¶
func (e WriteRequestValidationError) Reason() string
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 ¶
func (e WriteResponseValidationError) Cause() error
Cause function returns cause value.
func (WriteResponseValidationError) Error ¶
func (e WriteResponseValidationError) Error() string
Error satisfies the builtin error interface
func (WriteResponseValidationError) ErrorName ¶
func (e WriteResponseValidationError) ErrorName() string
ErrorName returns error name.
func (WriteResponseValidationError) Field ¶
func (e WriteResponseValidationError) Field() string
Field function returns field value.
func (WriteResponseValidationError) Key ¶
func (e WriteResponseValidationError) Key() bool
Key function returns key value.
func (WriteResponseValidationError) Reason ¶
func (e WriteResponseValidationError) Reason() string
Reason function returns reason value.