Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService(log logging.Logger, chainManager chains.Manager, events *triggers.EventDispatcher, httpServer *api.Server) *common.HTTPHandler
NewService returns a new IPCs API service
Types ¶
type ChainIPC ¶
type ChainIPC struct {
// contains filtered or unexported fields
}
ChainIPC a struct which holds IPC socket information
type IPCs ¶
type IPCs struct {
// contains filtered or unexported fields
}
IPCs maintains the IPCs
func (*IPCs) PublishBlockchain ¶
func (ipc *IPCs) PublishBlockchain(r *http.Request, args *PublishBlockchainArgs, reply *PublishBlockchainReply) error
PublishBlockchain publishes the finalized accepted transactions from the blockchainID over the IPC
func (*IPCs) UnpublishBlockchain ¶
func (ipc *IPCs) UnpublishBlockchain(r *http.Request, args *UnpublishBlockchainArgs, reply *UnpublishBlockchainReply) error
UnpublishBlockchain closes publishing of a blockchainID
type PublishBlockchainArgs ¶
type PublishBlockchainArgs struct {
BlockchainID string `json:"blockchainID"`
}
PublishBlockchainArgs are the arguments for calling PublishBlockchain
type PublishBlockchainReply ¶
type PublishBlockchainReply struct {
URL string `json:"url"`
}
PublishBlockchainReply are the results from calling PublishBlockchain
type UnpublishBlockchainArgs ¶
type UnpublishBlockchainArgs struct {
BlockchainID string `json:"blockchainID"`
}
UnpublishBlockchainArgs are the arguments for calling UnpublishBlockchain
type UnpublishBlockchainReply ¶
type UnpublishBlockchainReply struct {
Success bool `json:"success"`
}
UnpublishBlockchainReply are the results from calling UnpublishBlockchain
Click to show internal directories.
Click to hide internal directories.