api

package
v0.0.0-...-27d2001 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Errors map[string]interface{} `json:"errors"`
}

func AccessForbidden

func AccessForbidden() Error

func NewError

func NewError(err error) Error

func NotFound

func NotFound() Error

func Validator

func Validator(err error) Error

type Server

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

func NewServer

func NewServer(ctx context.Context, s *zap.SugaredLogger) *Server

NewServer initializes the echo server with necessary routes and configurations.

func (*Server) API

func (s *Server) API() *echo.Group

func (*Server) PrintRoutes

func (s *Server) PrintRoutes()

func (*Server) Start

func (s *Server) Start(address string) error

Start starts the echo server

func (*Server) Stop

func (s *Server) Stop() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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