endpoints

package
v0.0.0-...-bfcc399 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: Apache-2.0 Imports: 7 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 {
	GetIsPalindrome endpoint.Endpoint
	GetReverse      endpoint.Endpoint
}

func MakeEndpoints

func MakeEndpoints(svc services.StrServiceImp, logger log.Logger) Endpoints

type IsPalRequest

type IsPalRequest struct {
	Word string `json:"word"`
}

type IsPalResponse

type IsPalResponse struct {
	Message bool `json:"message"`
}

type ReverseRequest

type ReverseRequest struct {
	Word string `json:"word"`
}

type ReverseResponse

type ReverseResponse struct {
	Word string `json:"reversed_word"`
}

Jump to

Keyboard shortcuts

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