custom

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Condition

type Condition struct {
	TraceId     string `json:"traceId"`
	ServiceName string `json:"serviceName"`
	RpcMethod   string `json:"rpcMethod"`
	HttpPath    string `json:"httpPath"`
	Operator
}

func ConvertConditionByPbCondition

func ConvertConditionByPbCondition(conditions []*pb.Condition) []Condition

type Model

type Model struct {
	DurationMin int64       `json:"durationMin"`
	DurationMax int64       `json:"durationMax"`
	TenantId    string      `json:"tenantId"`
	StartTime   int64       `json:"startTime"` // ms
	EndTime     int64       `json:"endTime"`   // ms
	Status      string      `json:"status"`
	Limit       int64       `json:"limit"`
	Conditions  []Condition `json:"conditions"`
}

func (Model) ConvertCondition

func (m Model) ConvertCondition() []*pb.Condition

type Operator

type Operator struct {
	Operator string `json:"operator"`
}

func (Operator) IsNotEqualOperator

func (m Operator) IsNotEqualOperator() bool

func (Operator) OperatorText

func (m Operator) OperatorText() string

type TraceInParams

type TraceInParams struct {
	InParamsPtr *Model
}

func (*TraceInParams) CustomInParamsPtr

func (b *TraceInParams) CustomInParamsPtr() interface{}

func (*TraceInParams) DecodeToCustomInParams

func (b *TraceInParams) DecodeToCustomInParams(stdInParamsPtr *cptype.ExtraMap, customInParamsPtr interface{})

func (*TraceInParams) EncodeFromCustomInParams

func (b *TraceInParams) EncodeFromCustomInParams(customInParamsPtr interface{}, stdInParamsPtr *cptype.ExtraMap)

Jump to

Keyboard shortcuts

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