gateway

package
v2.6.6 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: MIT Imports: 16 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
	SegmentAPIKey       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