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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeLoremEndpoint

func MakeLoremEndpoint(svc services.Service) endpoint.Endpoint

creating Lorem Ipsum Endpoint

Types

type Endpoints

type Endpoints struct {
	LoremEndpoint endpoint.Endpoint
}

endpoints wrapper

func (Endpoints) Lorem

func (e Endpoints) Lorem(ctx context.Context, requestType string, min, max int) (string, error)

Wrapping Endpoints as a Service implementation. Will be used in gRPC client

type LoremRequest

type LoremRequest struct {
	RequestType string
	Min         int32
	Max         int32
}

request

type LoremResponse

type LoremResponse struct {
	Message string `json:"message"`
	Err     string `json:"err,omitempty"`
}

response

Jump to

Keyboard shortcuts

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