server

package
v0.0.0-...-909111b Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const PROTOCOL_ID = protocol.ID("/twing/1.0/")

Variables

This section is empty.

Functions

func Invoke

func Invoke(any interface{}, name string, args ...interface{})

func NewNode

func NewNode(ctx context.Context)

Types

type HandlerRepo

type HandlerRepo struct {
	RouteName   string `json:"route_name"`
	HandlerName string `json:"handler_name"`
}

type HealthProtocol

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

func NewHealthProtocol

func NewHealthProtocol(node *Node, done chan bool) *HealthProtocol

type IServer

type IServer interface {
	Build(out host.Host)
}

type Node

type Node struct {
	ID         peer.ID
	Host       host.Host
	GrpcServer grpc.Server
	Reader     chan *fs.StreamIO
}

func (*Node) Build

func (n *Node) Build(ctx context.Context, out host.Host)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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