endpoints

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

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

Go to latest
Published: Jul 7, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoints

type Endpoints struct {
	GetById endpoint.Endpoint
	GetAll  endpoint.Endpoint
}

func MakeEndpoints

func MakeEndpoints(svc usersvc.UserService) Endpoints

type GetAllRequest

type GetAllRequest struct {
	Search string `json:"search"`
}

type GetAllResponse

type GetAllResponse struct {
	Users []entities.User `json:"data"`
	Err   error           `json:"error,omitempty"`
}

type GetByIdRequest

type GetByIdRequest struct {
	ID string `json:"id"`
}

type GetByIdResponse

type GetByIdResponse struct {
	User *entities.User `json:"data"`
	Err  error          `json:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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