router

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2021 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PacketHandler

type PacketHandler interface {
	HandlePacket(
		ctx sdk.Context,
		packet channeltypes.Packet,
		ip packets.IncomingPacket,
	) (*sdk.Result, *packets.PacketAcknowledgementData, error)
	HandleACK(
		ctx sdk.Context,
		packet channeltypes.Packet,
		ip packets.IncomingPacket,
		ipa packets.IncomingPacketAcknowledgement,
	) (*sdk.Result, error)
}

type Router

type Router interface {
	AddRoute(typeName string, h PacketHandler)
	GetRoute(typeName string) (PacketHandler, bool)
}

func NewRouter

func NewRouter() Router

Jump to

Keyboard shortcuts

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