service

package
v0.0.0-...-a5508f6 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*S) error

func WithHttpClient

func WithHttpClient(c *http.Client) Option

type S

type S struct {
	Config config.C
	Router *mux.Router
	// contains filtered or unexported fields
}

S is a service.

func New

func New(opts ...Option) (S, error)

New creates a service.

func (S) Close

func (s S) Close()

Close will run any cleanup needed for a service to close.

Jump to

Keyboard shortcuts

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