Documentation ¶
Index ¶
- func NewPublicAPI(logger *zap.Logger, tracer opentracing.Tracer, appName string, ...) *echo.Echo
- type APIServer
- func (s APIServer) CreateEmployee(ctx echo.Context) error
- func (s APIServer) DeleteEmployee(ctx echo.Context, employeeID int64) error
- func (s APIServer) FindEmployeeByID(ctx echo.Context, employeeID int64) error
- func (s APIServer) GetAllEmployees(ctx echo.Context) error
- func (s APIServer) Greet(ctx echo.Context) error
- type Message
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 (APIServer) DeleteEmployee ¶
func (APIServer) FindEmployeeByID ¶
func (APIServer) GetAllEmployees ¶
Click to show internal directories.
Click to hide internal directories.