Documentation ¶
Index ¶
- Constants
- func AddErr(event *Event, err error)
- func AddUuid(fh FieldHolder, fieldName string)
- func Close()
- func Init(svcName string, version string, cfg libhoney.Config, data ...interface{})
- func Op(s string) ollyOp
- func QuickC(ollyContext Context, op ollyOp, data ...interface{})
- func Send(event *Event)
- type Builder
- type Context
- type Event
- type FieldHolder
Constants ¶
View Source
const (
CloseFlushTimeout = 1 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
func AddUuid ¶
func AddUuid(fh FieldHolder, fieldName string)
AddUuid inserts newly generated uuid to a builder or event under the given field name
func Op ¶
func Op(s string) ollyOp
Op() and the associated type are only here to help find Op keys in the code
Types ¶
type Builder ¶
type Builder struct {
*libhoney.Builder
}
Builder wraps libhoney in case we want to use something else
type Context ¶
type Context interface {
OllyBuilder() *Builder
}
Context helps provide scope builders
type Event ¶
type Event struct {
*libhoney.Event
}
Event wraps libhoney.Event in case we want to use something else
func AddContext ¶
AddContext Adds fields from context to event
type FieldHolder ¶
type FieldHolder interface {
AddField(name string, val interface{})
}
FieldHolder or functions that need to work on both libhoney Builders and Events
Click to show internal directories.
Click to hide internal directories.