endpoint

package
v0.0.0-...-c5558d5 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteRequest

type DeleteRequest struct {
	ID string `json:"id,omitempty"`
}

DeleteRequest - ...

type Endpoint

type Endpoint struct {
	Register    endpoint.Endpoint
	GetByID     endpoint.Endpoint
	UpdateEmail endpoint.Endpoint
	Delete      endpoint.Endpoint
}

Endpoint ...

func CreateEndPoint

func CreateEndPoint(service service.Service) Endpoint

CreateEndPoint - ...

type ErrorOnlyResponse

type ErrorOnlyResponse struct {
	Error error `json:"error,omitempty"`
}

ErrorOnlyResponse - ...

type GetRequest

type GetRequest struct {
	ID string `json:"id,omitempty"`
}

GetRequest - ...

type GetResponse

type GetResponse struct {
	Error    error       `json:"error,omitempty"`
	Employee pb.Employee `json:"employee,omitempty"`
}

GetResponse - ...

type RegisterRequest

type RegisterRequest struct {
	Employee pb.Employee `json:"employee,omitempty"`
}

RegisterRequest - ...

type RegisterResponse

type RegisterResponse struct {
	ID    string `json:"id,omitempty"`
	Error error  `json:"error,omitempty"`
}

RegisterResponse - ...

type UpdateEmailRequest

type UpdateEmailRequest struct {
	ID    string `json:"id,omitempty"`
	Email string `json:"email,omitempty"`
}

UpdateEmailRequest - ...

Jump to

Keyboard shortcuts

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