pb

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Level_name = map[int32]string{
		0: "TRACE",
		1: "DEBUG",
		2: "INFO",
		3: "NOTE",
		4: "WARN",
		5: "ERROR",
		6: "CRITICAL",
	}
	Level_value = map[string]int32{
		"TRACE":    0,
		"DEBUG":    1,
		"INFO":     2,
		"NOTE":     3,
		"WARN":     4,
		"ERROR":    5,
		"CRITICAL": 6,
	}
)

Enum value maps for Level.

View Source
var File_catalog_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CatalogFile

type CatalogFile struct {
	Pkgs []*Package `protobuf:"bytes,1,rep,name=pkgs,proto3" json:"pkgs,omitempty"`
	// contains filtered or unexported fields
}

a CatalogFile is the contents of a persisted message catalog

func (*CatalogFile) Descriptor deprecated

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

Deprecated: Use CatalogFile.ProtoReflect.Descriptor instead.

func (*CatalogFile) GetPkgs

func (x *CatalogFile) GetPkgs() []*Package

func (*CatalogFile) ProtoMessage

func (*CatalogFile) ProtoMessage()

func (*CatalogFile) ProtoReflect

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

func (*CatalogFile) Reset

func (x *CatalogFile) Reset()

func (*CatalogFile) String

func (x *CatalogFile) String() string

type Level

type Level int32
const (
	Level_TRACE    Level = 0
	Level_DEBUG    Level = 1
	Level_INFO     Level = 2
	Level_NOTE     Level = 3
	Level_WARN     Level = 4
	Level_ERROR    Level = 5
	Level_CRITICAL Level = 6
)

func (Level) Descriptor

func (Level) Descriptor() protoreflect.EnumDescriptor

func (Level) Enum

func (x Level) Enum() *Level

func (Level) EnumDescriptor deprecated

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

Deprecated: Use Level.Descriptor instead.

func (Level) Number

func (x Level) Number() protoreflect.EnumNumber

func (Level) String

func (x Level) String() string

func (Level) Type

func (Level) Type() protoreflect.EnumType

type Message

type Message struct {
	Id     string    `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Source *Source   `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
	Text   string    `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"`   // fixed message argument
	Short  *Template `protobuf:"bytes,4,opt,name=short,proto3" json:"short,omitempty"` // short template
	Long   *Template `protobuf:"bytes,5,opt,name=long,proto3" json:"long,omitempty"`   // long template
	Flags  uint32    `protobuf:"varint,6,opt,name=flags,proto3" json:"flags,omitempty"`
	Level  Level     `protobuf:"varint,7,opt,name=level,proto3,enum=org.bitbucket.fufoo.unlog.pb.Level" json:"level,omitempty"`
	// contains filtered or unexported fields
}

func (*Message) Descriptor deprecated

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetFlags

func (x *Message) GetFlags() uint32

func (*Message) GetId

func (x *Message) GetId() string

func (*Message) GetLevel

func (x *Message) GetLevel() Level

func (*Message) GetLong

func (x *Message) GetLong() *Template

func (*Message) GetShort

func (x *Message) GetShort() *Template

func (*Message) GetSource

func (x *Message) GetSource() *Source

func (*Message) GetText

func (x *Message) GetText() string

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

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

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

type Package

type Package struct {
	Path string     `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // Go import path
	Msgs []*Message `protobuf:"bytes,2,rep,name=msgs,proto3" json:"msgs,omitempty"`
	// contains filtered or unexported fields
}

func (*Package) Descriptor deprecated

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

Deprecated: Use Package.ProtoReflect.Descriptor instead.

func (*Package) GetMsgs

func (x *Package) GetMsgs() []*Message

func (*Package) GetPath

func (x *Package) GetPath() string

func (*Package) ProtoMessage

func (*Package) ProtoMessage()

func (*Package) ProtoReflect

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

func (*Package) Reset

func (x *Package) Reset()

func (*Package) String

func (x *Package) String() string

type Source

type Source struct {
	Pkg    string `protobuf:"bytes,1,opt,name=pkg,proto3" json:"pkg,omitempty"`
	File   string `protobuf:"bytes,2,opt,name=file,proto3" json:"file,omitempty"`
	Line   uint32 `protobuf:"varint,3,opt,name=line,proto3" json:"line,omitempty"`
	Column uint32 `protobuf:"varint,4,opt,name=column,proto3" json:"column,omitempty"`
	// contains filtered or unexported fields
}

func (*Source) Descriptor deprecated

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

Deprecated: Use Source.ProtoReflect.Descriptor instead.

func (*Source) GetColumn

func (x *Source) GetColumn() uint32

func (*Source) GetFile

func (x *Source) GetFile() string

func (*Source) GetLine

func (x *Source) GetLine() uint32

func (*Source) GetPkg

func (x *Source) GetPkg() string

func (*Source) ProtoMessage

func (*Source) ProtoMessage()

func (*Source) ProtoReflect

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

func (*Source) Reset

func (x *Source) Reset()

func (*Source) String

func (x *Source) String() string

type Template

type Template struct {
	Content string   `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	Uses    []string `protobuf:"bytes,2,rep,name=uses,proto3" json:"uses,omitempty"`
	// contains filtered or unexported fields
}

func (*Template) Descriptor deprecated

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

Deprecated: Use Template.ProtoReflect.Descriptor instead.

func (*Template) GetContent

func (x *Template) GetContent() string

func (*Template) GetUses

func (x *Template) GetUses() []string

func (*Template) ProtoMessage

func (*Template) ProtoMessage()

func (*Template) ProtoReflect

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

func (*Template) Reset

func (x *Template) Reset()

func (*Template) String

func (x *Template) String() string

Jump to

Keyboard shortcuts

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