version

package
v2.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(e *echo.Echo, service InterfaceService) *handler

Types

type Info

type Info struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

type InterfaceService

type InterfaceService interface {
	Read(context.Context) Info
}

type Service

type Service struct {
	Name    string
	Version string
}

func NewService

func NewService(name, version string) *Service

func (*Service) Read

func (s *Service) Read(ctx context.Context) Info

Jump to

Keyboard shortcuts

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