svc

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Unlicense Imports: 2 Imported by: 0

Documentation

Overview

Package svc demonstrates configuring a service-layer with launch.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Important string `json:"important" desc:"an important value" required:"true"`
	NotSoMuch int    `json:"not_so_much" desc:"a less important one" default:"42"`
}

Config represents configurables for an Svc.

func (*Config) New

func (cfg *Config) New() (*Svc, error)

New creates an Svc from Config.

type Svc

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

Svc is an example service layer in need of some config.

func New

func New(imp string, nsm int) (svc *Svc, err error)

New creates an Svc.

func (*Svc) Disintermediate

func (svc *Svc) Disintermediate()

Disintermediate prints some stuff.

Jump to

Keyboard shortcuts

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