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
Click to show internal directories.
Click to hide internal directories.