package
0.0.0-20201030131522-0001d104b0d3
Repository: https://github.com/oasislabs/oasis-gateway.git
Documentation: pkg.go.dev
# Functions
NewRequestManager creates a new instance of a request manager.
NewSubscriptionManager creates a new subscription manager.
SubID generates a subscription ID that uniquely identifies a subscription within the global namespace.
SubinfoID generates the ID that uniquely identifies the managed subscriptions of a session.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
CreateSubscriptionRequest is the request to subscribe to a specific event type for a service.
DataEvent is that event that can be polled by the user to poll for service logs for example, which they are a blob of data that the client knows how to manipulate.
DeployServiceRequest is issued by the user to trigger a service execution.
DeployServiceResponse is the event that can be polled by the user as a result to a ServiceDeployRequest.
UnsubscribeRequest is a request issued by the client to destroy an existing subscription.
ErrorEvent is the event that can be polled by the user as a result to a a request that failed.
No description provided by the author
ExecuteServiceRequest is is used by the user to trigger a service execution.
ExecuteServiceResponse is the event that can be polled by the user as a result to a ServiceExecutionRequest.
GetCodeRequest is a request to retrieve the code associated with a specific service.
GetCodeResponse is the response in which the code associated with the service is provided.
GetExpiryRequest is a request to retrieve the expiration timestamp associated with a specific service.
GetExpiryResponse is the response in which the public key associated with the service is provided.
GetPublicKeyRequest is a request to retrieve the public key associated with a specific service.
GetPublicKeyResponse is the response in which the public key associated with the service is provided.
PollEventRequest is a request issued by the client to poll events from an already created subscription.
PollServiceRequest is a request issued by a client to retrieve a window of responses generated by asynchronous requests.
RequestManager handles the client RPC requests.
No description provided by the author
SubscribeRequest is a request issued by the client to subscribe to a specific event type and receive events from it until the subscription is closed.
SubscriptionManager manages the lifetime of a group of subscriptions.
SubscriptionManagerProps properties used to create the behaviour of the manager and the subscriptions created.
No description provided by the author
UnsubscribeRequest is a request issued by the client to subscribe to a specific topic and receive events from it until the subscription is closed.
# Type aliases
No description provided by the author