Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ProviderSet = wire.NewSet( NewAPIServer, NewAPIHTTPServer, NewConfig, wire.Bind(new(HTTPServer), new(*APIHTTPServer)), ) )
Functions ¶
func NewLoggingServerHooks ¶
func NewLoggingServerHooks() *twirp.ServerHooks
Types ¶
type APIHTTPServer ¶
type APIHTTPServer struct {
// contains filtered or unexported fields
}
func NewAPIHTTPServer ¶
func NewAPIHTTPServer(config Config, apiServer *Server) *APIHTTPServer
func (*APIHTTPServer) NewAPIHandler ¶
func (a *APIHTTPServer) NewAPIHandler() http.Handler
func (*APIHTTPServer) Start ¶
func (a *APIHTTPServer) Start() error
type HTTPServer ¶
type HTTPServer interface {
Start() error
}
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewAPIServer ¶
func NewAPIServer( db db.Store, fileStore *store.Files, normalizer normalize.Normalizer, summarizer text.Summarizer, ) *Server
Click to show internal directories.
Click to hide internal directories.