common

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DetectPoint_name = map[int32]string{
	0: "client",
	1: "server",
	2: "proxy",
}
View Source
var DetectPoint_value = map[string]int32{
	"client": 0,
	"server": 1,
	"proxy":  2,
}
View Source
var ServiceType_name = map[int32]string{
	0: "normal",
	1: "database",
	2: "mq",
	3: "cache",
	4: "browser",
}
View Source
var ServiceType_value = map[string]int32{
	"normal":   0,
	"database": 1,
	"mq":       2,
	"cache":    3,
	"browser":  4,
}

Functions

This section is empty.

Types

type CPU

type CPU struct {
	UsagePercent         float64  `protobuf:"fixed64,2,opt,name=usagePercent,proto3" json:"usagePercent,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CPU) Descriptor

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

func (*CPU) GetUsagePercent

func (m *CPU) GetUsagePercent() float64

func (*CPU) ProtoMessage

func (*CPU) ProtoMessage()

func (*CPU) Reset

func (m *CPU) Reset()

func (*CPU) String

func (m *CPU) String() string

func (*CPU) XXX_DiscardUnknown

func (m *CPU) XXX_DiscardUnknown()

func (*CPU) XXX_Marshal

func (m *CPU) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CPU) XXX_Merge

func (m *CPU) XXX_Merge(src proto.Message)

func (*CPU) XXX_Size

func (m *CPU) XXX_Size() int

func (*CPU) XXX_Unmarshal

func (m *CPU) XXX_Unmarshal(b []byte) error

type Command

type Command struct {
	Command              string                `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"`
	Args                 []*KeyStringValuePair `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (*Command) Descriptor

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

func (*Command) GetArgs

func (m *Command) GetArgs() []*KeyStringValuePair

func (*Command) GetCommand

func (m *Command) GetCommand() string

func (*Command) ProtoMessage

func (*Command) ProtoMessage()

func (*Command) Reset

func (m *Command) Reset()

func (*Command) String

func (m *Command) String() string

func (*Command) XXX_DiscardUnknown

func (m *Command) XXX_DiscardUnknown()

func (*Command) XXX_Marshal

func (m *Command) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Command) XXX_Merge

func (m *Command) XXX_Merge(src proto.Message)

func (*Command) XXX_Size

func (m *Command) XXX_Size() int

func (*Command) XXX_Unmarshal

func (m *Command) XXX_Unmarshal(b []byte) error

type Commands

type Commands struct {
	Commands             []*Command `protobuf:"bytes,1,rep,name=commands,proto3" json:"commands,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*Commands) Descriptor

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

func (*Commands) GetCommands

func (m *Commands) GetCommands() []*Command

func (*Commands) ProtoMessage

func (*Commands) ProtoMessage()

func (*Commands) Reset

func (m *Commands) Reset()

func (*Commands) String

func (m *Commands) String() string

func (*Commands) XXX_DiscardUnknown

func (m *Commands) XXX_DiscardUnknown()

func (*Commands) XXX_Marshal

func (m *Commands) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Commands) XXX_Merge

func (m *Commands) XXX_Merge(src proto.Message)

func (*Commands) XXX_Size

func (m *Commands) XXX_Size() int

func (*Commands) XXX_Unmarshal

func (m *Commands) XXX_Unmarshal(b []byte) error

type DetectPoint

type DetectPoint int32

In most cases, detect point should be `server` or `client`. Even in service mesh, this means `server`/`client` side sidecar `proxy` is reserved only.

const (
	DetectPoint_client DetectPoint = 0
	DetectPoint_server DetectPoint = 1
	DetectPoint_proxy  DetectPoint = 2
)

func (DetectPoint) EnumDescriptor

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

func (DetectPoint) String

func (x DetectPoint) String() string

type KeyStringValuePair

type KeyStringValuePair struct {
	Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value                string   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*KeyStringValuePair) Descriptor

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

func (*KeyStringValuePair) GetKey

func (m *KeyStringValuePair) GetKey() string

func (*KeyStringValuePair) GetValue

func (m *KeyStringValuePair) GetValue() string

func (*KeyStringValuePair) ProtoMessage

func (*KeyStringValuePair) ProtoMessage()

func (*KeyStringValuePair) Reset

func (m *KeyStringValuePair) Reset()

func (*KeyStringValuePair) String

func (m *KeyStringValuePair) String() string

func (*KeyStringValuePair) XXX_DiscardUnknown

func (m *KeyStringValuePair) XXX_DiscardUnknown()

func (*KeyStringValuePair) XXX_Marshal

func (m *KeyStringValuePair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*KeyStringValuePair) XXX_Merge

func (m *KeyStringValuePair) XXX_Merge(src proto.Message)

func (*KeyStringValuePair) XXX_Size

func (m *KeyStringValuePair) XXX_Size() int

func (*KeyStringValuePair) XXX_Unmarshal

func (m *KeyStringValuePair) XXX_Unmarshal(b []byte) error

type ServiceType

type ServiceType int32
const (
	// An agent works inside the normal business application.
	ServiceType_normal ServiceType = 0
	// An agent works inside the database.
	ServiceType_database ServiceType = 1
	// An agent works inside the MQ.
	ServiceType_mq ServiceType = 2
	// An agent works inside the cache server.
	ServiceType_cache ServiceType = 3
	// An agent works inside the browser.
	ServiceType_browser ServiceType = 4
)

func (ServiceType) EnumDescriptor

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

func (ServiceType) String

func (x ServiceType) String() string

Jump to

Keyboard shortcuts

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