Documentation ¶
Index ¶
- Constants
- Variables
- func ExtractDevice(ctx context.Context) string
- func ExtractTags(ctx context.Context) map[string]string
- func ExtractTimestamp(ctx context.Context) time.Time
- func ExtractToken(ctx context.Context) string
- func ToData(d *Data) func(string, interface{}) error
- func WithDevice(ctx context.Context, dev string) context.Context
- func WithTags(ctx context.Context, tags map[string]string) context.Context
- func WithTimestamp(ctx context.Context, ts time.Time) context.Context
- func WithToken(ctx context.Context, tkn string) context.Context
- type Data
- type DataDecoder
- type DataEncoder
- type DataLauncher
- type DataLauncherFactory
- type DummyDataLauncher
- type HttpDataLauncher
- type HttpDataLauncherOption
- type HttpxDataLauncher
- type HttpxDataLauncherOption
- type JsonDataDecoder
- type JsonDataEncoder
- type Resource
Constants ¶
View Source
const ( HTTP_HEADER_SOURCE_ID = "X-Evaluator-Source-ID" HTTP_HEADER_SOURCE_TYPE = "X-Evaluator-Source-Type" HTTP_HEADER_DEVICE_ID = "X-Evaluator-Device-ID" HTTP_HEADER_DATA_CODEC = "X-Evaluator-Data-Codec" HTTP_HEADER_DATA_TIMESTAMP = "X-Evaluator-Data-Timestamp" HTTP_HEADER_DATA_TAGS = "X-Evaluator-Data-Tags" )
View Source
const (
TIMER_DEFAULT_CONFIG = "default"
)
Variables ¶
Functions ¶
func ExtractDevice ¶ added in v1.1.26
func ExtractToken ¶
func WithTimestamp ¶ added in v1.1.26
Types ¶
type Data ¶
type Data interface { Iter() map[string]interface{} Get(string) interface{} With(string, interface{}) Data }
func DataFromBytes ¶
func DataFromMap ¶
type DataDecoder ¶
func GetDataDecoder ¶
func GetDataDecoder(name string) (DataDecoder, error)
type DataEncoder ¶
func GetDataEncoder ¶
func GetDataEncoder(name string) (DataEncoder, error)
type DataLauncher ¶
func NewDataLauncher ¶
func NewDataLauncher(name string, args ...interface{}) (dl DataLauncher, err error)
func NewDummyDataLauncher ¶ added in v1.1.26
func NewDummyDataLauncher(args ...interface{}) (DataLauncher, error)
func NewHttpDataLauncher ¶
func NewHttpDataLauncher(args ...interface{}) (DataLauncher, error)
func NewHttpxDataLauncher ¶ added in v1.2.15
func NewHttpxDataLauncher(args ...any) (DataLauncher, error)
type DataLauncherFactory ¶
type DataLauncherFactory func(...interface{}) (DataLauncher, error)
type DummyDataLauncher ¶ added in v1.1.26
type DummyDataLauncher struct {
// contains filtered or unexported fields
}
type HttpDataLauncher ¶
type HttpDataLauncher struct {
// contains filtered or unexported fields
}
type HttpDataLauncherOption ¶
func DefaultHttpDataLauncherOption ¶
func DefaultHttpDataLauncherOption() *HttpDataLauncherOption
type HttpxDataLauncher ¶ added in v1.2.15
type HttpxDataLauncher struct {
// contains filtered or unexported fields
}
func (*HttpxDataLauncher) GetLogger ¶ added in v1.2.15
func (x *HttpxDataLauncher) GetLogger() log.FieldLogger
type HttpxDataLauncherOption ¶ added in v1.2.15
type JsonDataDecoder ¶
type JsonDataDecoder struct{}
type JsonDataEncoder ¶
type JsonDataEncoder struct{}
Click to show internal directories.
Click to hide internal directories.