Documentation ¶
Index ¶
- Constants
- type Config
- type Interceptor
- func (i *Interceptor) BelongTo() (componentTypes []string)
- func (i *Interceptor) Category() api.Category
- func (i *Interceptor) Config() interface{}
- func (i *Interceptor) IgnoreRetry() bool
- func (i *Interceptor) Init(context api.Context) error
- func (i *Interceptor) Intercept(invoker source.Invoker, invocation source.Invocation) api.Result
- func (i *Interceptor) Order() int
- func (i *Interceptor) Start() error
- func (i *Interceptor) Stop()
- func (i *Interceptor) String() string
- func (i *Interceptor) Type() api.Type
Constants ¶
View Source
const Order = 500
View Source
const Type = "maxbytes"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { interceptor.ExtensionConfig `yaml:",inline"` // The maximum number of bytes that a single log message can have. // All bytes after max_bytes are discarded and not sent. // The default is 128KB (131072) MaxBytes int `yaml:"maxBytes,omitempty" default:"131072" validate:"gte=0"` Target string `yaml:"target,omitempty" default:"body"` }
func (*Config) SetDefaults ¶
func (c *Config) SetDefaults()
type Interceptor ¶
type Interceptor struct {
// contains filtered or unexported fields
}
func NewInterceptor ¶
func NewInterceptor() *Interceptor
func (*Interceptor) BelongTo ¶
func (i *Interceptor) BelongTo() (componentTypes []string)
func (*Interceptor) Category ¶
func (i *Interceptor) Category() api.Category
func (*Interceptor) Config ¶
func (i *Interceptor) Config() interface{}
func (*Interceptor) IgnoreRetry ¶
func (i *Interceptor) IgnoreRetry() bool
func (*Interceptor) Intercept ¶
func (i *Interceptor) Intercept(invoker source.Invoker, invocation source.Invocation) api.Result
func (*Interceptor) Order ¶
func (i *Interceptor) Order() int
func (*Interceptor) Start ¶
func (i *Interceptor) Start() error
func (*Interceptor) Stop ¶
func (i *Interceptor) Stop()
func (*Interceptor) String ¶
func (i *Interceptor) String() string
func (*Interceptor) Type ¶
func (i *Interceptor) Type() api.Type
Click to show internal directories.
Click to hide internal directories.