proto

package
v0.0.0-...-52a8666 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPluginPath

func AddPluginPath(path string)

func GetProtoServiceBuilder

func GetProtoServiceBuilder(name string) (protoServiceFunc, error)

func RegisterProtoServiceFunc

func RegisterProtoServiceFunc(name string, f protoServiceFunc)

Types

type NegMsg

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

type ProtoService

type ProtoService interface {
	Name() string
	TryConn(context.Context, NegMsg, net.Conn) (net.Conn, NegMsg, bool) //link, bytes read in, match ok
	LocalURL() *url.URL
	Transport(NegMsg, net.Conn, net.Conn) // NegMsg, in, out
}

func NewService

func NewService(svcName, protoName string, tgtUrl *url.URL, args ...string) (ProtoService, error)

Jump to

Keyboard shortcuts

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