protolog

package
v0.0.96 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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

func NewSink

func NewSink(ch chan *Log) *logger

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) Descriptor() ([]byte, []int)

Deprecated: Use Log.ProtoReflect.Descriptor instead.

func (*Log) GetLines

func (x *Log) GetLines() *Log_Lines

func (*Log) GetLogLevel

func (x *Log) GetLogLevel() int32

func (*Log) GetPurpose

func (x *Log) GetPurpose() Log_Purpose

func (*Log) GetTask

func (x *Log) GetTask() *protocol.Task

func (*Log) ProtoMessage

func (*Log) ProtoMessage()

func (*Log) ProtoReflect

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

func (*Log) Reset

func (x *Log) Reset()

func (*Log) String

func (x *Log) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Log_Lines.ProtoReflect.Descriptor instead.

func (*Log_Lines) GetCat

func (x *Log_Lines) GetCat() string

func (*Log_Lines) GetLines

func (x *Log_Lines) GetLines() [][]byte

func (*Log_Lines) GetName

func (x *Log_Lines) GetName() string

func (*Log_Lines) ProtoMessage

func (*Log_Lines) ProtoMessage()

func (*Log_Lines) ProtoReflect

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

func (*Log_Lines) Reset

func (x *Log_Lines) Reset()

func (*Log_Lines) String

func (x *Log_Lines) String() string

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) 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

Jump to

Keyboard shortcuts

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