funcs

package
v0.0.0-...-64a9ce5 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ValidateCliReqName                     = "validate client request"
	ProcessCliRspName                      = "process client response"
	ValidateCliRspName                     = "validate client response"
	SelectCliRspName                       = "select client response"
	SetStageName                           = "set stage"
	GetSvcsName                            = "get services"
	RequireOneGSvcName                     = "require one service"
	SetFirstGSvcName                       = "set first service"
	GSvcRspToGCliRspName                   = "service response to client response"
	FuncName                               = "func"
	HandleReqName                          = "handle request"
	AddSvcToEntitiesName                   = "add service to entities"
	SetSvcFilterToGetModeIdSvcIdName       = "set service filter to get mode id service id"
	SetSvcFilterToGetModeRelationSvcIdName = "set service filter to get mode relation service id"
)

Variables

This section is empty.

Functions

func AddSvcToEntities

func AddSvcToEntities(f generic.Factory) types.FuncTransformer

func AddSvcToSvcIds

func AddSvcToSvcIds() types.FuncTransformer

func ApplySvcEndpointReqFilters

func ApplySvcEndpointReqFilters(f generic.Factory) types.FuncTransformer

func By

func By(subject string) func(ctx types.ReqCtx) string

func Collect

func Collect(from, to string) func(ctx types.ReqCtx, ctxs []types.ReqCtx) types.ReqCtx

func CollectBusReqCtxs

func CollectBusReqCtxs(ctx types.ReqCtx, ctxs []types.ReqCtx) types.ReqCtx

func Copy

func Copy(from, to string) types.FuncTransformer

func CreateGBusReqFromGCliReq

func CreateGBusReqFromGCliReq(f generic.Factory) types.FuncTransformer

func EntityOnlyContainsServiceId

func EntityOnlyContainsServiceId(ctx types.ReqCtx) bool

func FilterSvcPages

func FilterSvcPages(f generic.Factory) types.FuncTransformer

func Func

func Func(f func(ctx types.ReqCtx) types.ReqCtx) types.FuncTransformer

func GSvcRspToGCliRsp

func GSvcRspToGCliRsp() types.FuncTransformer

func GetEntityById

func GetEntityById(f generic.Factory, resolvePl *line.Line) types.FuncTransformer

func GetSvcs

func GetSvcs(resolve *line.Line, f generic.Factory, discoverySvc mql.Service) types.FuncTransformer

func HandleSvcReq

func HandleSvcReq(hs map[bool]types.RequestHandler) types.FuncTransformer

func HardFilterGCliRsp

func HardFilterGCliRsp() types.FuncTransformer

func Inspect

func Inspect() types.FuncTransformer

func Is

func Is(subject string, b bool) func(ctx types.ReqCtx) bool

func IsType

func IsType(subject string, name string, b bool) func(ctx types.ReqCtx) bool

func Isset

func Isset(subject string, path []string, b bool) func(ctx types.ReqCtx) bool

func Map

func Map(from, to string) func(ctx types.ReqCtx) (ctxs []types.ReqCtx)

func Move

func Move(f generic.Factory, from, to string) types.FuncTransformer

func New

func New(f generic.Factory, subject string) types.FuncTransformer

func NewError

func NewError(svc *mql.Service, kind, message string) mql.Error

func ProcessCliRsp

func ProcessCliRsp(f generic.Factory) types.FuncTransformer

func ReduceBusReqCtxsErrsToBusRspErrs

func ReduceBusReqCtxsErrsToBusRspErrs(f generic.Factory) types.FuncTransformer

func ReduceBusReqCtxsToBusRsp

func ReduceBusReqCtxsToBusRsp(f generic.Factory) types.FuncTransformer

func ReduceSvcRspPaginationsToCliRspPagination

func ReduceSvcRspPaginationsToCliRspPagination(f generic.Factory) types.FuncTransformer

func RequireOneGSvc

func RequireOneGSvc() types.FuncTransformer

func ResolveRelations

func ResolveRelations(resolvePl *line.Line, f generic.Factory) types.FuncTransformer

func Set

func Set(f generic.Factory, subject string, any interface{}) types.FuncTransformer

func SetDefaultSelect

func SetDefaultSelect() types.FuncTransformer

func SetFirstGSvc

func SetFirstGSvc() types.FuncTransformer

func SetId

func SetId() types.FuncTransformer

func SetStage

func SetStage(stage string) types.FuncTransformer

func SetSvcFilterToGetModeIdSvcIdFunc

func SetSvcFilterToGetModeIdSvcIdFunc() types.FuncTransformer

func SetSvcFilterToGetModeRelationIdFunc

func SetSvcFilterToGetModeRelationIdFunc() types.FuncTransformer

func ValidateCliReq

func ValidateCliReq(f generic.Factory) types.FuncTransformer

func ValidateCliRsp

func ValidateCliRsp() types.FuncTransformer

Types

This section is empty.

Jump to

Keyboard shortcuts

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