service

package module
v0.0.0-...-407967e Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2015 License: MIT Imports: 7 Imported by: 2

README

pault.ag/go/service

Easy boilerplate for creating a TLS secured reverse-RDP connection using Go's builtin RDP package.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client(conn net.Conn) *rpc.Client

func DialFromKeys

func DialFromKeys(laddr, clientCrt, clientKey, caCrt string) (net.Conn, error)

func Handle

func Handle(listener *Listener, coordinator Coordinator)

func ServeConn

func ServeConn(conn net.Conn)

Types

type Conn

type Conn struct {
	tls.Conn

	Certificates []*x509.Certificate
	CommonNames  []string
	Name         string
}

type Coordinator

type Coordinator interface {
	Register()
	Handle(*rpc.Client, *Conn)
}

type Listener

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

func Listen

func Listen(laddr string, caPool *x509.CertPool, serverCertPair tls.Certificate) (*Listener, error)

func ListenFromKeys

func ListenFromKeys(laddr, serverCrt, serverKey, caCrt string) (*Listener, error)

func (*Listener) Accept

func (l *Listener) Accept() (net.Conn, error)

func (*Listener) Addr

func (l *Listener) Addr() net.Addr

func (*Listener) Close

func (l *Listener) Close() error

type Node

type Node interface {
	Register()
}

Jump to

Keyboard shortcuts

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