Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager() *Manager
func (*Manager) GetQueryByName ¶
GetQueryByName returns a query corresponding to its name.
func (*Manager) GetRegisteredQueries ¶
GetRegisteredQueries returns all the registered queries.
type Option ¶
type Option[Request, Reply any] func(qt *queryType[Request, Reply])
func WithCustomQueryGroup ¶
WithCustomQueryGroup sets a custom group for the query. By default, queries are registered under the "game" group which maps it to the /query/game/:queryType route. This option allows you to set a custom group, which allow you to register the query under /query/<custom_group>/:queryType.
func WithQueryEVMSupport ¶
Click to show internal directories.
Click to hide internal directories.