service

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProtocolID  = "/kava-relayer/echo/1.0.0"
	ServiceName = "kava-relayer.echo"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EchoService

type EchoService struct {
	Host host.Host
	// contains filtered or unexported fields
}

func NewEchoService

func NewEchoService(h host.Host, done chan bool, minPeers int) *EchoService

func (*EchoService) Echo

func (es *EchoService) Echo(ctx context.Context, peerID peer.ID, payload string) (string, error)

Jump to

Keyboard shortcuts

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