Documentation
¶
Index ¶
- Constants
- type ChaincodeCustom
- type ChaincodeDeserializationError
- type ChaincodeDuplicatedError
- type ChaincodeEventCallback
- type ChaincodeFieldValidationError
- type ChaincodeInternalError
- type ChaincodeInvoke
- type ChaincodeInvokeFailureError
- type ChaincodeMiddleware
- func NewCategoryChaincodeMiddleware(logger *zap.Logger, net common.Network, ipfs *ipfs.IPFSManager, db *gorm.DB) *ChaincodeMiddleware
- func NewCategoryGroupChaincodeMiddleware(logger *zap.Logger, net common.Network, ipfs *ipfs.IPFSManager, db *gorm.DB) *ChaincodeMiddleware
- func NewChaincodeMiddleware(logger *zap.Logger, net common.Network, contract common.Contract, ...) *ChaincodeMiddleware
- func NewPostChaincodeMiddleware(logger *zap.Logger, net common.Network, ipfs *ipfs.IPFSManager, db *gorm.DB) *ChaincodeMiddleware
- func NewTagChaincodeMiddleware(logger *zap.Logger, net common.Network, ipfs *ipfs.IPFSManager, db *gorm.DB) *ChaincodeMiddleware
- func NewTopicChaincodeMiddleware(logger *zap.Logger, net common.Network, ipfs *ipfs.IPFSManager, db *gorm.DB) *ChaincodeMiddleware
- func NewUserProfileMiddleware(logger *zap.Logger, net common.Network, db *gorm.DB) *ChaincodeMiddleware
- type ChaincodeMiddlewareOption
- func WithChaincodeCustom(location string, custom ChaincodeCustom) ChaincodeMiddlewareOption
- func WithChaincodeHandler(action string, eventName string, invoke ChaincodeInvoke, ...) ChaincodeMiddlewareOption
- func WithChaincodeQueryGet(token string, query ChaincodeQuery) ChaincodeMiddlewareOption
- func WithChaincodeQueryPost(token string, query ChaincodeQuery) ChaincodeMiddlewareOption
- type ChaincodeNotFoundError
- type ChaincodeQuery
- type ChaincodeQueryParameterError
Constants ¶
View Source
const NONE = "~~NONE~~"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChaincodeCustom ¶
type ChaincodeDeserializationError ¶
type ChaincodeDeserializationError struct{}
func (*ChaincodeDeserializationError) Error ¶
func (f *ChaincodeDeserializationError) Error() string
func (*ChaincodeDeserializationError) Message ¶
func (f *ChaincodeDeserializationError) Message() *proto.ResponseMessage
func (*ChaincodeDeserializationError) Status ¶
func (f *ChaincodeDeserializationError) Status() int
type ChaincodeDuplicatedError ¶
type ChaincodeDuplicatedError struct {
// contains filtered or unexported fields
}
func (*ChaincodeDuplicatedError) Error ¶
func (f *ChaincodeDuplicatedError) Error() string
func (*ChaincodeDuplicatedError) Message ¶
func (f *ChaincodeDuplicatedError) Message() *proto.ResponseMessage
func (*ChaincodeDuplicatedError) Status ¶
func (f *ChaincodeDuplicatedError) Status() int
type ChaincodeEventCallback ¶
type ChaincodeFieldValidationError ¶
type ChaincodeFieldValidationError struct {
// contains filtered or unexported fields
}
func (*ChaincodeFieldValidationError) Error ¶
func (f *ChaincodeFieldValidationError) Error() string
func (*ChaincodeFieldValidationError) Message ¶
func (f *ChaincodeFieldValidationError) Message() *proto.ResponseMessage
func (*ChaincodeFieldValidationError) Status ¶
func (f *ChaincodeFieldValidationError) Status() int
type ChaincodeInternalError ¶
type ChaincodeInternalError struct{}
func (*ChaincodeInternalError) Error ¶
func (f *ChaincodeInternalError) Error() string
func (*ChaincodeInternalError) Message ¶
func (f *ChaincodeInternalError) Message() *proto.ResponseMessage
func (*ChaincodeInternalError) Status ¶
func (f *ChaincodeInternalError) Status() int
type ChaincodeInvoke ¶
type ChaincodeInvokeFailureError ¶
type ChaincodeInvokeFailureError struct {
// contains filtered or unexported fields
}
func (*ChaincodeInvokeFailureError) Error ¶
func (f *ChaincodeInvokeFailureError) Error() string
func (*ChaincodeInvokeFailureError) Message ¶
func (f *ChaincodeInvokeFailureError) Message() *proto.ResponseMessage
func (*ChaincodeInvokeFailureError) Status ¶
func (f *ChaincodeInvokeFailureError) Status() int
type ChaincodeMiddleware ¶
type ChaincodeMiddleware struct {
// contains filtered or unexported fields
}
func NewCategoryChaincodeMiddleware ¶
func NewCategoryChaincodeMiddleware(logger *zap.Logger, net common.Network, ipfs *ipfs.IPFSManager, db *gorm.DB) *ChaincodeMiddleware
func NewCategoryGroupChaincodeMiddleware ¶
func NewCategoryGroupChaincodeMiddleware(logger *zap.Logger, net common.Network, ipfs *ipfs.IPFSManager, db *gorm.DB) *ChaincodeMiddleware
func NewChaincodeMiddleware ¶
func NewChaincodeMiddleware(logger *zap.Logger, net common.Network, contract common.Contract, options ...ChaincodeMiddlewareOption) *ChaincodeMiddleware
func NewPostChaincodeMiddleware ¶
func NewPostChaincodeMiddleware(logger *zap.Logger, net common.Network, ipfs *ipfs.IPFSManager, db *gorm.DB) *ChaincodeMiddleware
func NewTagChaincodeMiddleware ¶
func NewTagChaincodeMiddleware(logger *zap.Logger, net common.Network, ipfs *ipfs.IPFSManager, db *gorm.DB) *ChaincodeMiddleware
func NewTopicChaincodeMiddleware ¶
func NewTopicChaincodeMiddleware(logger *zap.Logger, net common.Network, ipfs *ipfs.IPFSManager, db *gorm.DB) *ChaincodeMiddleware
func (*ChaincodeMiddleware) Listen ¶
func (cc *ChaincodeMiddleware) Listen(ctx context.Context) error
func (*ChaincodeMiddleware) Register ¶
func (cc *ChaincodeMiddleware) Register(g *echo.Group, e *echo.Echo)
type ChaincodeMiddlewareOption ¶
type ChaincodeMiddlewareOption func(cc *ChaincodeMiddleware) error
func WithChaincodeCustom ¶
func WithChaincodeCustom(location string, custom ChaincodeCustom) ChaincodeMiddlewareOption
func WithChaincodeHandler ¶
func WithChaincodeHandler(action string, eventName string, invoke ChaincodeInvoke, callback ChaincodeEventCallback) ChaincodeMiddlewareOption
func WithChaincodeQueryGet ¶
func WithChaincodeQueryGet(token string, query ChaincodeQuery) ChaincodeMiddlewareOption
func WithChaincodeQueryPost ¶
func WithChaincodeQueryPost(token string, query ChaincodeQuery) ChaincodeMiddlewareOption
type ChaincodeNotFoundError ¶
type ChaincodeNotFoundError struct {
// contains filtered or unexported fields
}
func (*ChaincodeNotFoundError) Error ¶
func (f *ChaincodeNotFoundError) Error() string
func (*ChaincodeNotFoundError) Message ¶
func (f *ChaincodeNotFoundError) Message() *proto.ResponseMessage
func (*ChaincodeNotFoundError) Status ¶
func (f *ChaincodeNotFoundError) Status() int
type ChaincodeQuery ¶
type ChaincodeQuery echo.HandlerFunc
type ChaincodeQueryParameterError ¶
type ChaincodeQueryParameterError struct{}
func (*ChaincodeQueryParameterError) Error ¶
func (f *ChaincodeQueryParameterError) Error() string
func (*ChaincodeQueryParameterError) Message ¶
func (f *ChaincodeQueryParameterError) Message() *proto.ResponseMessage
func (*ChaincodeQueryParameterError) Status ¶
func (f *ChaincodeQueryParameterError) Status() int
Click to show internal directories.
Click to hide internal directories.