Versions in this module Expand all Collapse all v1 v1.0.1 Oct 6, 2023 v1.0.0 Oct 2, 2023 Changes in this version + const DefaultEventSource + type AppEventOpt func(event *ApplicationEvent) + func WithAdditionalData(additionalData map[string]interface{}) AppEventOpt + func WithId(id string) AppEventOpt + func WithPayload(payload interface{}) AppEventOpt + func WithServiceCode(serviceCode string) AppEventOpt + func WithSource(source string) AppEventOpt + type ApplicationEvent struct + AdditionalData map[string]interface{} + Ctx context.Context + Event string + Id string + PayloadData interface{} + ServiceCode string + Source string + Timestamp int64 + func NewApplicationEvent(ctx context.Context, name string, options ...AppEventOpt) *ApplicationEvent + func (a *ApplicationEvent) AddAdditionData(key string, value interface{}) + func (a *ApplicationEvent) Context() context.Context + func (a *ApplicationEvent) DeleteAdditionData(key string) + func (a *ApplicationEvent) Identifier() string + func (a *ApplicationEvent) Name() string + func (a *ApplicationEvent) Payload() interface{} + func (a *ApplicationEvent) String() string + func (a *ApplicationEvent) ToString(obj interface{}) string + type LogProperties struct + NotLogPayloadForEvents []string + type Properties struct + ChannelSize int + Log LogProperties + func NewProperties(loader config.Loader) (*Properties, error) + func (p Properties) Prefix() string