Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPublicRouter ¶
func NewPublicRouter(config *gateway.Config, provider *Provider) *rpc.HttpRouter
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements a simple service provider based on the type of the service. Only one instance of a specific type may be added
func (*Provider) Add ¶
Add adds a new type to the provider. Returns true on success, false if an instance of the same type has already been added
func (*Provider) Get ¶
Get retrieves the first instance of that type, or if v is an interface, that implements that type.
Click to show internal directories.
Click to hide internal directories.