endpoint

package
v0.0.0-...-f068abf Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JWTMiddleware

func JWTMiddleware(secret string) endpoint.Middleware

Types

type Endpoints

type Endpoints interface {
	GetAllTodo(ctx context.Context, request interface{}) (response interface{}, err error)
	GetTodoByID(ctx context.Context, request interface{}) (response interface{}, err error)
	CreateTodo(ctx context.Context, request interface{}) (response interface{}, err error)
	UpdateTodo(ctx context.Context, request interface{}) (response interface{}, err error)
	DeleteTodo(ctx context.Context, request interface{}) (response interface{}, err error)
}

func NewEndpoints

func NewEndpoints(srv service.TodoService, secret string) Endpoints

Jump to

Keyboard shortcuts

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