service

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 15, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHttpService

func NewHttpService(
	metadata *ServiceMetadata,
	endpoints map[string]map[string]echo.HandlerFunc,
	middlewares map[string]echo.MiddlewareFunc) interfaces.Service

Types

type HttpService

type HttpService struct {
	Metadata    *ServiceMetadata
	Endpoints   map[string]map[string]echo.HandlerFunc
	Middlewares map[string]echo.MiddlewareFunc
}

func (HttpService) Name

func (h HttpService) Name() string

func (HttpService) Prefix

func (h HttpService) Prefix() string

func (HttpService) Version

func (h HttpService) Version() string

type ServiceMetadata

type ServiceMetadata struct {
	Name    string
	Prefix  string
	Version string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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