server

package
v0.0.0-...-b6fdf8c Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run()

Run is an export method that serves occamy proxy

Types

type Session

type Session struct {
	ID string
	// contains filtered or unexported fields
}

Session is an occamy proxy session that shares connection within an user group

func NewSession

func NewSession(proto string) (*Session, error)

NewSession creates a new occamy proxy session

func (*Session) Join

func (s *Session) Join(ws *websocket.Conn, jwt *config.JWT, owner bool, unlock func()) error

Join adds the given socket as a new user to the given process, automatically reading/writing from the socket via read/write threads. The given socket, parser, and any associated resources will be freed unless the user is not added successfully.

Jump to

Keyboard shortcuts

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