Documentation ¶
Overview ¶
Package accounts provides a series of HTTP handlers for managing accounts in a compatible database.
Index ¶
Constants ¶
View Source
const ( // AccountIDURIParamKey is a standard string that we'll use to refer to account IDs with. AccountIDURIParamKey = "accountID" // UserIDURIParamKey is a standard string that we'll use to refer to user IDs with. UserIDURIParamKey = "userID" )
Variables ¶
View Source
var Providers = wire.NewSet( ProvideService, )
Providers is our collection of what we provide to other services.
Functions ¶
func ProvideService ¶
func ProvideService( logger logging.Logger, cfg Config, accountDataManager types.AccountDataManager, accountMembershipDataManager types.AccountUserMembershipDataManager, encoder encoding.ServerEncoderDecoder, counterProvider metrics.UnitCounterProvider, routeParamManager routing.RouteParamManager, publisherProvider publishers.PublisherProvider, ) (types.AccountDataService, error)
ProvideService builds a new AccountsService.
Types ¶
type Config ¶
type Config struct { Logging logging.Config `json:"logging" mapstructure:"logging" toml:"logging,omitempty"` PreWritesTopicName string `json:"pre_writes_topic_name" mapstructure:"pre_writes_topic_name" toml:"pre_writes_topic_name,omitempty"` // contains filtered or unexported fields }
Config configures the service.
type SearchIndex ¶
type SearchIndex search.IndexManager
SearchIndex is a type alias for dependency injection's sake.
Click to show internal directories.
Click to hide internal directories.