repo

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallsRepository

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

func NewCallsRepository

func NewCallsRepository() *CallsRepository

NewCallsRepository creates and returns a new instance of CallsRepository. It initializes the calls map to store core.Handler instances keyed by string. It returns a pointer to the newly created CallsRepository.

func (*CallsRepository) GetCall

func (r *CallsRepository) GetCall(method string) core.Handler

GetCall retrieves a handler function associated with the given method name. It takes a single parameter method of type string, which specifies the method name. It returns a core.Handler which is the handler function associated with the specified method.

func (*CallsRepository) UpdateCalls added in v0.2.0

func (r *CallsRepository) UpdateCalls(callsMap map[string]core.Handler)

UpdateCalls updates the repository with a new set of call handlers. It takes a callsMap parameter which is a map where the key is a string and the value is a core.Handler. This function does not return any values.

type ConnectionRegistry

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

func NewConnectionRegistry

func NewConnectionRegistry() *ConnectionRegistry

NewConnectionRegistry creates and returns a new instance of ConnectionRegistry. It initializes the connections map to store connection objects. It returns a pointer to the newly created ConnectionRegistry.

func (*ConnectionRegistry) GetConnection

func (c *ConnectionRegistry) GetConnection(clientConn wasabi.Connection) *core.Conn

GetConnection retrieves an existing connection or creates a new one if it doesn't exist. It takes a clientConn of type wasabi.Connection. It returns a pointer to a core.Conn.

Jump to

Keyboard shortcuts

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