Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseProvider ¶
type BaseProvider struct {
// contains filtered or unexported fields
}
func NewBaseProvider ¶
func NewBaseProvider(source <-chan Ammo, decoder Decoder, New func() interface{}) *BaseProvider
func (*BaseProvider) Release ¶
func (ap *BaseProvider) Release(a Ammo)
func (*BaseProvider) Source ¶
func (ap *BaseProvider) Source() <-chan Ammo
type Decoder ¶
func NewLogJSONDecoder ¶
func NewLogJSONDecoder() Decoder
type HttpJSONDecoder ¶
type HttpJSONDecoder struct{}
HttpJSONDecoder implements ammo.Decoder interface
type HttpProvider ¶
type HttpProvider struct {
*BaseProvider
// contains filtered or unexported fields
}
ffjson: skip
type LogProvider ¶
type LogProvider struct {
*BaseProvider
// contains filtered or unexported fields
}
type Provider ¶
type Provider interface {
Start(context.Context) error
Source() <-chan Ammo
Release(Ammo) // return unused Ammo object to memory pool
}
func NewHttpProvider ¶
func NewHttpProvider(c *config.AmmoProvider) (Provider, error)
func NewLogAmmoProvider ¶
func NewLogAmmoProvider(c *config.AmmoProvider) (Provider, error)
Click to show internal directories.
Click to hide internal directories.