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, 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 HeaderKeyUUID string `yaml:"headerkey_uuid" mapstructure:"headerkey_uuid" default:"Compass-User-UUID"` HeaderValueUUID string `yaml:"headervalue_uuid" mapstructure:"headervalue_uuid" default:"gotocompany@email.com"` HeaderKeyEmail 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.