Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Serve ¶
func Serve( ctx context.Context, config Config, logger *log.Logrus, pgClient *postgres.Client, nrApp *newrelic.Application, statsdReporter *statsd.Reporter, namespaceService handlersv1beta1.NamespaceService, assetService handlersv1beta1.AssetService, starService handlersv1beta1.StarService, discussionService handlersv1beta1.DiscussionService, tagService handlersv1beta1.TagService, tagTemplateService handlersv1beta1.TagTemplateService, userService handlersv1beta1.UserService, ) error
Types ¶
type Config ¶
type Config struct {
Host string `mapstructure:"host" default:"0.0.0.0"`
Port int `mapstructure:"port" default:"8080"`
BaseUrl string `mapstructure:"baseurl" default:"localhost:8080"`
// User Identity
Identity IdentityConfig `mapstructure:"identity"`
// GRPC Config
GRPC GRPCConfig `mapstructure:"grpc"`
}
type GRPCConfig ¶
type IdentityConfig ¶
type IdentityConfig struct {
// User Identity
HeaderKeyUserUUID string `yaml:"headerkey_uuid" mapstructure:"headerkey_uuid" default:"Compass-User-UUID"`
HeaderValueUserUUID string `yaml:"headervalue_uuid" mapstructure:"headervalue_uuid" default:"raystack@email.com"`
HeaderKeyUserEmail string `yaml:"headerkey_email" mapstructure:"headerkey_email" default:"Compass-User-Email"`
ProviderDefaultName string `yaml:"provider_default_name" mapstructure:"provider_default_name" default:""`
}
Click to show internal directories.
Click to hide internal directories.