Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrivateApi ¶
type PrivateApi struct { Router *mux.Router Address string // contains filtered or unexported fields }
func NewPrivateApi ¶
func NewPrivateApi(logger *logger.Logger, config *PrivateApiConfig) *PrivateApi
func (*PrivateApi) Addr ¶
func (a *PrivateApi) Addr() string
func (*PrivateApi) Build ¶
func (a *PrivateApi) Build() *http.Server
func (*PrivateApi) RegisterPrivateRoutes ¶
func (a *PrivateApi) RegisterPrivateRoutes()
func (*PrivateApi) RegisterRoutesFunc ¶
func (a *PrivateApi) RegisterRoutesFunc(fn func(router *mux.Router))
type PrivateApiConfig ¶
type PrivateApiConfig struct {
Address string `envconfig:"PRIVATE_ADDRESS" default:":8081"`
}
type PublicApi ¶
type PublicApi struct { *PublicApiConfig Router *mux.Router }
func NewPublicApi ¶
func NewPublicApi(config *PublicApiConfig) *PublicApi
func (*PublicApi) RegisterRoutesFunc ¶
type PublicApiConfig ¶
Click to show internal directories.
Click to hide internal directories.