Documentation ¶
Index ¶
- func BadRequest(msg string) *oas.ErrorStatusCode
- func InternalError(err error) *oas.ErrorStatusCode
- func Unauthorized(err error) *oas.ErrorStatusCode
- type Config
- type Handler
- func (h *Handler) AccountEventsSubscriptionStatus(ctx context.Context, req *oas.AccountEventsSubscriptionStatusReq) (*oas.AccountEventsSubscriptionStatusOK, error)
- func (h *Handler) BridgeWebhook(ctx context.Context, req *oas.BridgeWebhookReq, params oas.BridgeWebhookParams) error
- func (h *Handler) GetTonConnectPayload(ctx context.Context) (*oas.GetTonConnectPayloadOK, error)
- func (h *Handler) NewError(ctx context.Context, err error) *oas.ErrorStatusCode
- func (h *Handler) SubscribeToAccountEvents(ctx context.Context, req *oas.SubscribeToAccountEventsReq) error
- func (h *Handler) SubscribeToBridgeEvents(ctx context.Context, req *oas.SubscribeToBridgeEventsReq) error
- func (h *Handler) UnsubscribeFromAccountEvents(ctx context.Context, req *oas.UnsubscribeFromAccountEventsReq) error
- func (h *Handler) UnsubscribeFromBridgeEvents(ctx context.Context, req *oas.UnsubscribeFromBridgeEventsReq) error
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadRequest ¶
func BadRequest(msg string) *oas.ErrorStatusCode
func InternalError ¶
func InternalError(err error) *oas.ErrorStatusCode
func Unauthorized ¶
func Unauthorized(err error) *oas.ErrorStatusCode
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler handles operations described by OpenAPI v3 specification of this service. It implements oas.Handler interface and every API operation is implemented as a method on Handler.
func NewHandler ¶
func (*Handler) AccountEventsSubscriptionStatus ¶
func (h *Handler) AccountEventsSubscriptionStatus(ctx context.Context, req *oas.AccountEventsSubscriptionStatusReq) (*oas.AccountEventsSubscriptionStatusOK, error)
AccountEventsSubscriptionStatus returns a status of an account-events subscription.
func (*Handler) BridgeWebhook ¶
func (h *Handler) BridgeWebhook(ctx context.Context, req *oas.BridgeWebhookReq, params oas.BridgeWebhookParams) error
BridgeWebhook is called by the HTTP Bridge when an event occurs.
func (*Handler) GetTonConnectPayload ¶
GetTonConnectPayload returns a challenge for TON Connect.
func (*Handler) SubscribeToAccountEvents ¶
func (h *Handler) SubscribeToAccountEvents(ctx context.Context, req *oas.SubscribeToAccountEventsReq) error
SubscribeToAccountEvents subscribes to notifications about events in the TON blockchain for a specific address.
func (*Handler) SubscribeToBridgeEvents ¶
func (h *Handler) SubscribeToBridgeEvents(ctx context.Context, req *oas.SubscribeToBridgeEventsReq) error
SubscribeToBridgeEvents subscribes to notifications from the HTTP Bridge regarding a specific smart contract or wallet.
func (*Handler) UnsubscribeFromAccountEvents ¶
func (h *Handler) UnsubscribeFromAccountEvents(ctx context.Context, req *oas.UnsubscribeFromAccountEventsReq) error
UnsubscribeFromAccountEvents unsubscribes from notifications about events in the TON blockchain for a specific address.
func (*Handler) UnsubscribeFromBridgeEvents ¶
func (h *Handler) UnsubscribeFromBridgeEvents(ctx context.Context, req *oas.UnsubscribeFromBridgeEventsReq) error
UnsubscribeFromBridgeEvents unsubscribes from bridge notifications.