Documentation
¶
Index ¶
- type Gear
- func (gear *Gear) Get(resp *models.SubscriptionResponse) error
- func (gear *Gear) GetClient() gear_client.IClient
- func (gear *Gear) GetConfig() *config.Scheme
- func (gear *Gear) GetMeta() *metadata.Metadata
- func (gear *Gear) GetRPC() gear_rpc.IGearRPC
- func (gear *Gear) GetWsClient() gear_client.IWsClient
- func (gear *Gear) ProcessSubscriptions() error
- func (gear *Gear) ResponsePoolRunner()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gear ¶
type Gear struct {
// contains filtered or unexported fields
}
func (*Gear) GetClient ¶
func (gear *Gear) GetClient() gear_client.IClient
func (*Gear) GetWsClient ¶ added in v1.0.0
func (gear *Gear) GetWsClient() gear_client.IWsClient
func (*Gear) ProcessSubscriptions ¶ added in v1.0.0
func (*Gear) ResponsePoolRunner ¶ added in v1.0.0
func (gear *Gear) ResponsePoolRunner()
ResponsePoolRunner is the main function that handles and operates subscriptions responses.
You can add new subscription by using Subscribe function of gear.wsClient as shown below:
newSubscription, err := gear.wsClient.Subscribe(args, methodName) ... gear.responsePool = append(gear.responsePool, newSubscription) // the part in which new sub is added to pool --------------------------------------------------------------------------------------------------------------------
This function could be overwritten if config value of Subscriptions.HasCustomPoolRunner is set by true. In this case, you would have to make CustomRunner function by your own in the way it suits you
Directories
¶
| Path | Synopsis |
|---|---|
|
generate-rust-grpc
command
|
|
|
example
|
|
|
code
command
|
|
|
rust-grpc-scale
command
|
|
|
internal
|
|
|
lib
|
|
|
pkg
|
|
Click to show internal directories.
Click to hide internal directories.