Documentation ¶
Index ¶
Constants ¶
View Source
const ( PostMethodSupported = "only post method is allowed" CredentialsError = "credentials error" TokenError = "token error" )
Variables ¶
This section is empty.
Functions ¶
func BrokerClient ¶
func BrokerClient(host string, port int) (pb.EndpointClient, error)
func ConfigureClient ¶
func ConfigureClient(config *Config) (pb.ConfigureEndpointClient, error)
func ManagerClient ¶
func ManagerClient(config *Config) (pb.ManagerClient, error)
Types ¶
type Config ¶
type Config struct { App string `mapstructure:"app"` DB database `mapstructure:"db"` Auth auth `mapstructure:"auth"` Configure configure `mapstructure:"configure"` Manager client `mapstructure:"manager"` Broker map[string]client `mapstructure:"broker"` Log logging `mapstructure:"log"` }
func LoadConfig ¶
Click to show internal directories.
Click to hide internal directories.