Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VersionHandler ¶
Types ¶
type HandlerFunc ¶
type Option ¶
type Option func(s *Server)
func WithAddress ¶
func WithHandlerFunc ¶
func WithHandlerFunc(fs ...HandlerFunc) Option
func WithHttpHandlerFunc ¶
func WithHttpHandlerFunc(path string, fs gin.HandlerFunc) Option
type Server ¶
type Server struct { Mux *runtime.ServeMux GRPCAddress string DialOptions []grpc.DialOption Address string HTTPHandlerFuncs map[string]gin.HandlerFunc HandlerFuncs []HandlerFunc HttpServer *http.Server // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.