public

package
v0.0.0-...-f610a31 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPublicAPI

func NewPublicAPI(logger *zap.Logger, tracer opentracing.Tracer, appName string, repository database.Repository, swagger *openapi3.T) *echo.Echo

NewPublicAPI constructs a public echo server with all application routes defined.

Types

type APIServer

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

func NewAPIServer

func NewAPIServer(repository database.Repository) *APIServer

func (APIServer) CreateEmployee

func (s APIServer) CreateEmployee(ctx echo.Context) error

func (APIServer) DeleteEmployee

func (s APIServer) DeleteEmployee(ctx echo.Context, employeeID int64) error

func (APIServer) FindEmployeeByID

func (s APIServer) FindEmployeeByID(ctx echo.Context, employeeID int64) error

func (APIServer) GetAllEmployees

func (s APIServer) GetAllEmployees(ctx echo.Context) error

func (APIServer) Greet

func (s APIServer) Greet(ctx echo.Context) error

type Message

type Message struct {
	Text string
}

Jump to

Keyboard shortcuts

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