Documentation ¶
Index ¶
- Constants
- Variables
- func ExtractToken(ctx context.Context) string
- func WithToken(ctx context.Context, tkn string) context.Context
- type Data
- type DataDecoder
- type DataEncoder
- type DataLauncher
- type DataLauncherFactory
- type HttpDataLauncher
- type HttpDataLauncherOption
- 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_DATA_CODEC = "X-Evaluator-Data-Codec" )
Variables ¶
Functions ¶
func ExtractToken ¶
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 NewHttpDataLauncher ¶
func NewHttpDataLauncher(args ...interface{}) (DataLauncher, error)
type DataLauncherFactory ¶
type DataLauncherFactory func(...interface{}) (DataLauncher, error)
type HttpDataLauncher ¶
type HttpDataLauncher struct {
// contains filtered or unexported fields
}
type HttpDataLauncherOption ¶
func DefaultHttpDataLauncherOption ¶
func DefaultHttpDataLauncherOption() *HttpDataLauncherOption
type JsonDataDecoder ¶
type JsonDataDecoder struct{}
type JsonDataEncoder ¶
type JsonDataEncoder struct{}
Click to show internal directories.
Click to hide internal directories.