pingpong

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*PingPong)

func WithMessage

func WithMessage(v string) Option

func WithTimeout

func WithTimeout(v time.Duration) Option

type PingPong

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

func New

func New(logger logger, opts ...Option) *PingPong

New return ping pong instance with default timeout 5 min and message ping-pong

func (*PingPong) Name

func (p *PingPong) Name() string

Name of the service

func (*PingPong) Start

func (p *PingPong) Start(ctx context.Context) error

Start ping-pong service

func (*PingPong) Stop

func (p *PingPong) Stop(_ context.Context) error

Stop ping-pong service

Jump to

Keyboard shortcuts

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