29 lines
657 B
Go
29 lines
657 B
Go
package mtinfo
|
|
|
|
const (
|
|
//GRPC reflects the GRPC communication protocol.
|
|
GRPC Protocol = "grpc"
|
|
//REST reflects the REST communication protocol.
|
|
REST Protocol = "rest"
|
|
)
|
|
|
|
//Protocol reflects a transport protocol
|
|
type Protocol string
|
|
|
|
//Config contains configuration data
|
|
type Config struct {
|
|
Auth AuthConfig `yaml:"auth"`
|
|
}
|
|
|
|
//AuthConfig contains configuration data for an authentication client
|
|
type AuthConfig struct {
|
|
PublicKey string `yaml:"public_key"`
|
|
Grpc GrpcEndpoint `yaml:"grpc"`
|
|
}
|
|
|
|
//GrpcEndpoint contains configuration for a grpc based endpoint
|
|
type GrpcEndpoint struct {
|
|
Host string `yaml:"host"`
|
|
Port string `yaml:"port"`
|
|
}
|