Documentation ¶
Index ¶
- Variables
- func BFRDefaultErrorEncoder(w http.ResponseWriter, r *http.Request, err error)
- func ContentType(subtype string) string
- func DefaultResponseEncoder(w http.ResponseWriter, r *http.Request, v interface{}) error
- func HeaderMiddleWare() middleware.Middleware
- func NewGRPCServer(userSvr *user.UserService, organizationSvr *organization.OrganizationService, ...) *grpc.Server
- func NewHTTPServer(userSvr *user.UserService, organizationSvr *organization.OrganizationService, ...) *http.Server
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewGRPCServer, NewHTTPServer)
ProviderSet is server providers.
Functions ¶
func BFRDefaultErrorEncoder ¶
func BFRDefaultErrorEncoder(w http.ResponseWriter, r *http.Request, err error)
func ContentType ¶
func DefaultResponseEncoder ¶
func DefaultResponseEncoder(w http.ResponseWriter, r *http.Request, v interface{}) error
func HeaderMiddleWare ¶
func HeaderMiddleWare() middleware.Middleware
func NewGRPCServer ¶
func NewGRPCServer( userSvr *user.UserService, organizationSvr *organization.OrganizationService, roleSvr *role.RoleService, routerSvr *router.RouterService, messageSvr *message.MessageService, logger log.Logger) *grpc.Server
NewGRPCServer new a gRPC server.
func NewHTTPServer ¶
func NewHTTPServer( userSvr *user.UserService, organizationSvr *organization.OrganizationService, roleSvr *role.RoleService, routerSvr *router.RouterService, messageSvr *message.MessageService, icdSvr *icd.IcdService, followSvr *follow.FollowService, disfunctionSvr *disfunction.DisfunctionService, treatmentSuggestionTemplateSvr *treatmentSuggestionTemplate.TreatmentSuggestionTemplateService, treatmentSuggestionSvr *treatmentSuggestion.TreatmentSuggestionService, icfSvr *icf.IcfService, logger log.Logger) *http.Server
NewHTTPServer new a HTTP server.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.