gitlab.com/evatix-go/core@v1.3.55/corefuncs/funcs.go (about) 1 package corefuncs 2 3 import ( 4 "gitlab.com/evatix-go/core/coredata/corejson" 5 "gitlab.com/evatix-go/core/coredata/corepayload" 6 "gitlab.com/evatix-go/core/coreinterface/errcoreinf" 7 "gitlab.com/evatix-go/core/coreinterface/serializerinf" 8 ) 9 10 type ( 11 ExecFunc func() 12 StringerActionFunc func() (result string) 13 StringerWithErrorActionFunc func() (result string, err error) 14 ActionFunc func() 15 IsApplyFunc func() (isSuccess bool) 16 InOutFunc func(input interface{}) (output interface{}) 17 InOutErrFunc func(input interface{}) (output interface{}, err error) 18 SerializeOutputFunc func(input interface{}) (serializedBytes []byte, err error) 19 SerializerVoidFunc func() (serializedBytes []byte, err error) 20 InActionReturnsErrFunc func(input interface{}) (err error) 21 NamedActionFunc func(name string) 22 ActionReturnsErrorFunc func() error 23 IsSuccessFunc func() (isSuccess bool) 24 IsFailureFunc func() (isFailed bool) 25 // ResultDelegatingFunc 26 // 27 // resultDelegatedTo can be unmarshal or marshal or reflect set 28 ResultDelegatingFunc func(resultDelegatedTo interface{}) error 29 NextReturnErrWrapperFunc func(nextAction ActionReturnsErrorFunc) error 30 NextVoidActionFunc func(nextAction ExecFunc) 31 PayloadProcessorFunc func(payloads []byte) (err error) 32 PayloadToBasicErrProcessorFunc func(payloads []byte) (basicError errcoreinf.BasicErrWrapper) 33 SimpleBytesResultProcessorFunc func(simpleBytes serializerinf.SimpleBytesResulter) (basicError errcoreinf.BasicErrWrapper) 34 ErrorToBasicError func( 35 errorTyper errcoreinf.BaseErrorTyper, 36 err error, 37 ) (basicError errcoreinf.BasicErrWrapper) 38 BaseJsonResultProcessorFunc func(baseJsonResulter serializerinf.BaseJsonResulter) (basicError errcoreinf.BasicErrWrapper) 39 JsonResulterProcessorFunc func(result serializerinf.JsonResulter) (basicError errcoreinf.BasicErrWrapper) 40 JsonResultProcessorFunc func(result *corejson.Result) (basicError errcoreinf.BasicErrWrapper) 41 PayloadWrapperProcessorFunc func(payloadWrapper *corepayload.PayloadWrapper) (basicError errcoreinf.BasicErrWrapper) 42 MultiPayloadsProcessorFunc func(multiPayloads ...[]byte) (err error) 43 BytesCollectionPayloadsProcessorFunc func(collectionOfBytes *corejson.BytesCollection) (err error) 44 PayloadToPayloadWrapperFunc func(payloads []byte) (payloadWrapper *corepayload.PayloadWrapper, err error) 45 NextPayloadProcessorLinkerFunc func(nextLinkerFunc PayloadProcessorFunc) error 46 )