service

package
v0.0.0-...-8cb8a38 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProtocolID  = "/fury-relayer/echo/1.0.0"
	ServiceName = "fury-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