ipcs

package
v0.0.0-...-6c03f8d Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 License: BSD-3-Clause Imports: 15 Imported by: 0

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

func (*ChainIPC) Accept

func (cipc *ChainIPC) Accept(chainID, containerID ids.ID, container []byte) error

Accept delivers a message to the ChainIPC

func (*ChainIPC) Stop

func (cipc *ChainIPC) Stop() error

Stop halts the ChainIPC event loop

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

Jump to

Keyboard shortcuts

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