package
1.8.0
Repository: https://github.com/resgateio/resgate.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

NewService creates a new Service.
NewSubscription creates a new Subscription.
PathToRID parses a raw URL path and returns the resource ID.
PathToRIDAction parses a raw URL path and returns the resource ID and action.
RegisterAPIEncoderFactory adds an APIEncoderFactory by name.
RIDToPath converts a resource ID to a URL path string.

# Constants

CacheWorkers is the number of goroutines handling cached resources.
CIDPlaceholder is the placeholder tag for the connection ID.
DefaultAddr is the default host for client connections.
DefaultAPIEncoding is the default encoding for web resources.
DefaultAPIPath is the default path to web resource.
DefaultPort is the default port for client connections.
DefaultWSPath is the default path for WebSocket connections.
No description provided by the author
MQTimeout is the wait time for the messaging client to close on shutdown.
ProtocolVersion is the implemented RES protocol version.
SubscriptionCountLimit is the subscription limit of a single connection.
UnsubscribeDelay is the delay for the cache to unsubscribe and evict resources no longer used.
Version is the current version for the server.
WSConnWorkerQueueSize is the size of the queue for each connection worker.
WSTimeout is the wait time for WebSocket connections to close on shutdown.

# Structs

Config holds server configuration.
Service is a RES gateway implementation.
Subscription represents a resource subscription made by a client connection.

# Interfaces

APIEncoder encodes responses to HTTP API requests.
ConnSubscriber represents a client connection making the subscription.

# Type aliases

APIEncoderFactory create an APIEncoder.