Documentation ¶
Index ¶
- type WebhookService
- type WebhookServiceImpl
- func (wi *WebhookServiceImpl) Register(ctx context.Context, in *pb.WebhookRequest) (*pb.WebhookResponse, error)
- func (wi *WebhookServiceImpl) Remove(ctx context.Context, in *pb.WebhookRequest) (*pb.WebhookResponse, error)
- func (wi *WebhookServiceImpl) SendConfirmedBlock(block *domain.Block) error
- func (wi *WebhookServiceImpl) Serve(port int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebhookService ¶
type WebhookService interface { SendConfirmedBlock(block *domain.Block) error Serve(port int) error }
func NewWebhookService ¶
func NewWebhookService() (WebhookService, error)
type WebhookServiceImpl ¶
type WebhookServiceImpl struct {
// contains filtered or unexported fields
}
func (*WebhookServiceImpl) Register ¶
func (wi *WebhookServiceImpl) Register(ctx context.Context, in *pb.WebhookRequest) (*pb.WebhookResponse, error)
func (*WebhookServiceImpl) Remove ¶
func (wi *WebhookServiceImpl) Remove(ctx context.Context, in *pb.WebhookRequest) (*pb.WebhookResponse, error)
func (*WebhookServiceImpl) SendConfirmedBlock ¶
func (wi *WebhookServiceImpl) SendConfirmedBlock(block *domain.Block) error
func (*WebhookServiceImpl) Serve ¶
func (wi *WebhookServiceImpl) Serve(port int) error
Click to show internal directories.
Click to hide internal directories.