server

package
v0.0.0-...-8bff5d1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	*http.Server
	TLS TLS

	Stripe          Stripe
	TimeoutShutdown time.Duration
}

Server holds a server configurations.

func New

func New(c config.Config, router http.Handler) *Server

New returns a new server.

func (*Server) Start

func (srv *Server) Start(ctx context.Context) error

Start runs the server listening for errors.

type Stripe

type Stripe struct {
	SecretKey string
	Level     stripe.Level
}

Stripe holds stripe configurations.

type TLS

type TLS struct {
	KeyFile  string
	CertFile string
}

TLS contains key and certificate files paths.

Jump to

Keyboard shortcuts

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