gateway

package
v2.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Addr                ma.Multiaddr
	APIAddr             ma.Multiaddr
	StripeWebhookSecret string
	Debug               bool
}

Config defines the gateway configuration.

type Gateway

type Gateway struct {
	// contains filtered or unexported fields
}

Gateway provides an endpoint for Stripe webhooks.

func NewGateway

func NewGateway(conf Config) (*Gateway, error)

NewGateway returns a new gateway.

func (*Gateway) Addr

func (g *Gateway) Addr() string

Addr returns the gateway's address.

func (*Gateway) Start

func (g *Gateway) Start()

Start the gateway.

func (*Gateway) Stop

func (g *Gateway) Stop() error

Stop the gateway.

Jump to

Keyboard shortcuts

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