Documentation ¶
Index ¶
- Variables
- func NewSink(ch chan *Log) *logger
- type Log
- func (*Log) Descriptor() ([]byte, []int)deprecated
- func (x *Log) GetLines() *Log_Lines
- func (x *Log) GetLogLevel() int32
- func (x *Log) GetPurpose() Log_Purpose
- func (x *Log) GetTask() *protocol.Task
- func (*Log) ProtoMessage()
- func (x *Log) ProtoReflect() protoreflect.Message
- func (x *Log) Reset()
- func (x *Log) String() string
- type Log_Lines
- func (*Log_Lines) Descriptor() ([]byte, []int)deprecated
- func (x *Log_Lines) GetCat() string
- func (x *Log_Lines) GetLines() [][]byte
- func (x *Log_Lines) GetName() string
- func (*Log_Lines) ProtoMessage()
- func (x *Log_Lines) ProtoReflect() protoreflect.Message
- func (x *Log_Lines) Reset()
- func (x *Log_Lines) String() string
- type Log_Purpose
- func (Log_Purpose) Descriptor() protoreflect.EnumDescriptor
- func (x Log_Purpose) Enum() *Log_Purpose
- func (Log_Purpose) EnumDescriptor() ([]byte, []int)deprecated
- func (x Log_Purpose) Number() protoreflect.EnumNumber
- func (x Log_Purpose) String() string
- func (Log_Purpose) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Log_Purpose_name = map[int32]string{ 0: "PURPOSE_UNKNOWN", 1: "PURPOSE_WAITING", 2: "PURPOSE_STARTED", 3: "PURPOSE_DONE", 4: "PURPOSE_INSTANT", } Log_Purpose_value = map[string]int32{ "PURPOSE_UNKNOWN": 0, "PURPOSE_WAITING": 1, "PURPOSE_STARTED": 2, "PURPOSE_DONE": 3, "PURPOSE_INSTANT": 4, } )
Enum value maps for Log_Purpose.
View Source
var File_std_tasks_protolog_log_proto protoreflect.FileDescriptor
Functions ¶
Types ¶
type Log ¶
type Log struct { LogLevel int32 `protobuf:"varint,1,opt,name=log_level,json=logLevel,proto3" json:"log_level,omitempty"` Task *protocol.Task `protobuf:"bytes,2,opt,name=task,proto3" json:"task,omitempty"` Purpose Log_Purpose `protobuf:"varint,3,opt,name=purpose,proto3,enum=foundation.workspace.tasks.protolog.Log_Purpose" json:"purpose,omitempty"` Lines *Log_Lines `protobuf:"bytes,4,opt,name=lines,proto3" json:"lines,omitempty"` // contains filtered or unexported fields }
func (*Log) Descriptor
deprecated
func (*Log) GetLogLevel ¶
func (*Log) GetPurpose ¶
func (x *Log) GetPurpose() Log_Purpose
func (*Log) ProtoMessage ¶
func (*Log) ProtoMessage()
func (*Log) ProtoReflect ¶
func (x *Log) ProtoReflect() protoreflect.Message
type Log_Lines ¶
type Log_Lines struct { Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Cat string `protobuf:"bytes,4,opt,name=cat,proto3" json:"cat,omitempty"` Lines [][]byte `protobuf:"bytes,7,rep,name=lines,proto3" json:"lines,omitempty"` // contains filtered or unexported fields }
func (*Log_Lines) Descriptor
deprecated
func (*Log_Lines) ProtoMessage ¶
func (*Log_Lines) ProtoMessage()
func (*Log_Lines) ProtoReflect ¶
func (x *Log_Lines) ProtoReflect() protoreflect.Message
type Log_Purpose ¶
type Log_Purpose int32
const ( Log_PURPOSE_UNKNOWN Log_Purpose = 0 Log_PURPOSE_WAITING Log_Purpose = 1 Log_PURPOSE_STARTED Log_Purpose = 2 Log_PURPOSE_DONE Log_Purpose = 3 Log_PURPOSE_INSTANT Log_Purpose = 4 )
func (Log_Purpose) Descriptor ¶
func (Log_Purpose) Descriptor() protoreflect.EnumDescriptor
func (Log_Purpose) Enum ¶
func (x Log_Purpose) Enum() *Log_Purpose
func (Log_Purpose) EnumDescriptor
deprecated
func (Log_Purpose) EnumDescriptor() ([]byte, []int)
Deprecated: Use Log_Purpose.Descriptor instead.
func (Log_Purpose) Number ¶
func (x Log_Purpose) Number() protoreflect.EnumNumber
func (Log_Purpose) String ¶
func (x Log_Purpose) String() string
func (Log_Purpose) Type ¶
func (Log_Purpose) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.