server

package
v0.0.0-...-c38fcd0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2022 License: MIT Imports: 43 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is server providers.

Functions

func BFRDefaultErrorEncoder

func BFRDefaultErrorEncoder(w http.ResponseWriter, r *http.Request, err error)

func ContentType

func ContentType(subtype string) string

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL