p2p

package
v1.1.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	nodeIface.Service
	// contains filtered or unexported fields
}

func New

func New(srv substrate.Service) (*Service, error)

func (*Service) Cache

func (s *Service) Cache() iface.Cache

func (*Service) CheckTns

func (s *Service) CheckTns(matcherIface commonIface.MatchDefinition) ([]commonIface.Serviceable, error)

func (*Service) Close

func (s *Service) Close() error

func (*Service) Context

func (s *Service) Context() context.Context

func (*Service) Discover

func (s *Service) Discover(ctx context.Context, max int, timeout time.Duration) ([]peer.AddrInfo, error)

func (*Service) Handle

func (s *Service) Handle(cmd *command.Command) (resp response.Response, err error)

Handles calls made with sdk

func (*Service) LookupService

func (srv *Service) LookupService(matcher *iface.MatchDefinition) (*structureSpec.Service, string, error)

func (*Service) StartStream

func (srv *Service) StartStream(name, protocol string, handler iface.StreamHandler) (iface.CommandService, error)

func (*Service) Stream

func (srv *Service) Stream(ctx context.Context, projectID, applicationID, protocol string) (iface.Stream, error)

Directories

Path Synopsis
test

Jump to

Keyboard shortcuts

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