Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CocoonCodeOperations ¶
type CocoonCodeOperations struct {
// contains filtered or unexported fields
}
CocoonCodeOperations represents a cocoon code operation handlers
func NewCocoonCodeHandler ¶
func NewCocoonCodeHandler(cocoonCodeRPCAddr string) *CocoonCodeOperations
NewCocoonCodeHandler creates a new instance of a ledger operation handler
func (*CocoonCodeOperations) Handle ¶
func (l *CocoonCodeOperations) Handle(ctx context.Context, op *proto_connector.CocoonCodeOperation) (*proto_connector.Response, error)
Handle handles cocoon operations
type LedgerOperations ¶
type LedgerOperations struct { CocoonID string // contains filtered or unexported fields }
LedgerOperations represents a ledger operation handler
func NewLedgerOperationHandler ¶
func NewLedgerOperationHandler(log *logging.Logger, connector *connector.Connector) *LedgerOperations
NewLedgerOperationHandler creates a new instance of a ledger operation handler
func (*LedgerOperations) Handle ¶
func (l *LedgerOperations) Handle(ctx context.Context, op *proto_connector.LedgerOperation) (*proto_connector.Response, error)
Handle handles all types of ledger operations
type LockOperations ¶
type LockOperations struct {
// contains filtered or unexported fields
}
LockOperations defines a structure for handling lock operations from the cocoon code
func NewLockOperationHandler ¶
func NewLockOperationHandler(log *logging.Logger, connector *connector.Connector) *LockOperations
NewLockOperationHandler creates a new LockOperations instance
func (*LockOperations) Handle ¶
func (l *LockOperations) Handle(ctx context.Context, op *proto_connector.LockOperation) (*proto_connector.Response, error)
Handle handles cocoon operations
Click to show internal directories.
Click to hide internal directories.