Documentation
¶
Index ¶
- type GnmiCacheConfig
- type GnmiOutputCache
- func (gc *GnmiOutputCache) Init(opts ...Option)
- func (gc *GnmiOutputCache) LoadConfig(gcc *GnmiCacheConfig)
- func (gc *GnmiOutputCache) Read() []*formatters.EventMsg
- func (gc *GnmiOutputCache) SetLogger(logger *log.Logger)
- func (gc *GnmiOutputCache) Write(measName string, rsp *gnmi.SubscribeResponse)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GnmiCacheConfig ¶
type GnmiCacheConfig struct {
Expiration time.Duration `mapstructure:"expiration,omitempty"`
Timeout time.Duration `mapstructure:"timeout,omitempty"`
Debug bool `mapstructure:"debug,omitempty"`
}
func (*GnmiCacheConfig) SetDefaults ¶
func (gcc *GnmiCacheConfig) SetDefaults()
type GnmiOutputCache ¶
func (*GnmiOutputCache) Init ¶
func (gc *GnmiOutputCache) Init(opts ...Option)
func (*GnmiOutputCache) LoadConfig ¶
func (gc *GnmiOutputCache) LoadConfig(gcc *GnmiCacheConfig)
func (*GnmiOutputCache) Read ¶
func (gc *GnmiOutputCache) Read() []*formatters.EventMsg
func (*GnmiOutputCache) SetLogger ¶
func (gc *GnmiOutputCache) SetLogger(logger *log.Logger)
func (*GnmiOutputCache) Write ¶
func (gc *GnmiOutputCache) Write(measName string, rsp *gnmi.SubscribeResponse)
Click to show internal directories.
Click to hide internal directories.