ping

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PongGateway

type PongGateway interface {
	Pong(context.Context, int, time.Duration) (string, error)
}

PongGateway represents the pong gateway

type Request

type Request struct {
	Num   int
	Sleep time.Duration
}

Request Request

type Service

type Service interface {
	Ping(context.Context, Request) (string, error)
}

Service Service

func NewService

func NewService(pongGateway PongGateway) Service

NewService NewService

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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