echoapi

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EchoAPI

type EchoAPI struct {
	// contains filtered or unexported fields
}

EchoAPI contains Echo API dependencies.

func New

func New(repo Repo) EchoAPI

New returns new EchoAPI instance.

func (EchoAPI) Echo

func (e EchoAPI) Echo(ctx context.Context, request *echov1.EchoRequest) (*echov1.EchoResponse, error)

Echo returns echo from repository.

type Repo

type Repo interface {
	Echo(ctx context.Context, message string) (datastruct.Echo, error)
}

Repo contains required repository methods for Echo API.

Jump to

Keyboard shortcuts

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