metathings_plugin_evaluator_service

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2020 License: MIT Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TIMER_DATA_CODEC = "json"
)

Variables

View Source
var (
	ErrTimerDefaultConfigNotFound = errors.New("timer default config not found")
)

Functions

This section is empty.

Types

type EvaluatorPluginService

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

func NewEvaluatorPluginService

func NewEvaluatorPluginService(
	opt *EvaluatorPluginServiceOption,
	logger log.FieldLogger,
	tknr token_helper.Tokener,
	dat_stor dssdk.DataStorage,
	smpl_stor dsdk.SimpleStorage,
	task_stor evltr_stor.TaskStorage,
	caller dsdk.Caller,
	sms_sender smssdk.SmsSender,
	cli_fty *client_helper.ClientFactory,
) (*EvaluatorPluginService, error)

func (*EvaluatorPluginService) Eval

func (*EvaluatorPluginService) HandleResponse

func (srv *EvaluatorPluginService) HandleResponse(w http.ResponseWriter, r *http.Request, hs *hst.HttpStatus)

func (*EvaluatorPluginService) IsTraced added in v1.1.28

func (srv *EvaluatorPluginService) IsTraced(*http.Request) bool

func (*EvaluatorPluginService) ReceiveData added in v1.1.26

func (srv *EvaluatorPluginService) ReceiveData(w http.ResponseWriter, r *http.Request)

func (*EvaluatorPluginService) TimerWebhook added in v1.1.28

func (srv *EvaluatorPluginService) TimerWebhook(w http.ResponseWriter, r *http.Request)

type EvaluatorPluginServiceOption

type EvaluatorPluginServiceOption struct {
	Evaluator struct {
		Endpoint string
	}
	Server struct {
		Name string
	}
	Codec    string
	IsTraced bool
}

func NewEvaluatorPluginServiceOption added in v1.1.26

func NewEvaluatorPluginServiceOption() *EvaluatorPluginServiceOption

type GetParamFunc added in v1.1.28

type GetParamFunc func(*http.Request, string) string

Jump to

Keyboard shortcuts

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