Documentation ¶
Overview ¶
Index ¶
Constants ¶
View Source
const SwaggerFile = "/swagger.json"
SwaggerFile is the swagger file (local path)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedocOpts ¶
type RedocOpts struct { // SpecURL the url to find the spec for SpecURL string // RedocURL for the js that generates the redoc site, defaults to: https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js RedocURL string // Title for the documentation site, default to: API documentation Title string }
RedocOpts is the Redoc configures type
var RedocOptions RedocOpts
RedocOptions configures the Redoc
type RegisterServiceHandlerFunc ¶ added in v1.2.0
type RegisterServiceHandlerFunc func(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
ReverseProxyFunc - a callback that the caller should implement to steps to reverse-proxy the HTTP/1 requests to gRPC type ReverseProxyFunc func(ctx context.Context, mux *runtime.ServeMux, grpcHostAndPort string, opts []grpc.DialOption) error
type Service ¶
Service - to represent the microservice
func (*Service) AddService ¶ added in v1.2.0
func (s *Service) AddService(serviceDesc *grpc.ServiceDesc, srv interface{}, registerServiceHandlerFunc RegisterServiceHandlerFunc)
func (*Service) SetGRPCGatewayPort ¶ added in v1.2.0
func (*Service) SetGRPCPort ¶ added in v1.2.0
Click to show internal directories.
Click to hide internal directories.