notification

package
v0.0.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 5 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfig

func NewConfig() data.NotificationConfig

func NewToken

func NewToken(subscriptionId string, store data.Store, callback data.NotificationCallback) data.NotificationToken

Types

type Callback

type Callback struct {
	// contains filtered or unexported fields
}

func (*Callback) Fn

func (c *Callback) Fn(ctx context.Context, n data.Notification)

func (*Callback) Id

func (c *Callback) Id() string

type ConfigWrapper

type ConfigWrapper struct {
	// contains filtered or unexported fields
}

func (*ConfigWrapper) GetContextFields

func (c *ConfigWrapper) GetContextFields() []string

func (*ConfigWrapper) GetEntityId

func (c *ConfigWrapper) GetEntityId() string

func (*ConfigWrapper) GetEntityType

func (c *ConfigWrapper) GetEntityType() string

func (*ConfigWrapper) GetFieldName

func (c *ConfigWrapper) GetFieldName() string

func (*ConfigWrapper) GetNotifyOnChange

func (c *ConfigWrapper) GetNotifyOnChange() bool

func (*ConfigWrapper) GetServiceId

func (c *ConfigWrapper) GetServiceId() string

func (*ConfigWrapper) SetContextFields

func (c *ConfigWrapper) SetContextFields(cf []string) data.NotificationConfig

func (*ConfigWrapper) SetEntityId

func (c *ConfigWrapper) SetEntityId(id string) data.NotificationConfig

func (*ConfigWrapper) SetEntityType

func (c *ConfigWrapper) SetEntityType(t string) data.NotificationConfig

func (*ConfigWrapper) SetFieldName

func (c *ConfigWrapper) SetFieldName(f string) data.NotificationConfig

func (*ConfigWrapper) SetNotifyOnChange

func (c *ConfigWrapper) SetNotifyOnChange(no bool) data.NotificationConfig

func (*ConfigWrapper) SetServiceId

func (c *ConfigWrapper) SetServiceId(si string) data.NotificationConfig

type NotificationWrapper

type NotificationWrapper struct {
	// contains filtered or unexported fields
}

func (*NotificationWrapper) GetContext

func (n *NotificationWrapper) GetContext(index int) data.Field

func (*NotificationWrapper) GetContextCount

func (n *NotificationWrapper) GetContextCount() int

func (*NotificationWrapper) GetCurrent

func (n *NotificationWrapper) GetCurrent() data.Field

func (*NotificationWrapper) GetPrevious

func (n *NotificationWrapper) GetPrevious() data.Field

func (*NotificationWrapper) GetToken

func (n *NotificationWrapper) GetToken() string

type Token

type Token struct {
	// contains filtered or unexported fields
}

func (*Token) Id

func (t *Token) Id() string

func (*Token) Unbind

func (t *Token) Unbind(ctx context.Context)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL