Documentation ¶
Overview ¶
Package grpcuiredoc provides Redoc theme for grpcui.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
func Handler(ch grpcdynamic.Channel, target string, methods []*desc.MethodDescriptor, files []*desc.FileDescriptor, opts ...HandlerOption) http.Handler
Handler is a wrapper around github.com/fullstorydev/grpcui/standalone.Handler to provide the theme.
func HandlerViaReflection ¶
func HandlerViaReflection(ctx context.Context, cc grpc.ClientConnInterface, target string, opts ...HandlerOption) (http.Handler, error)
HandlerViaReflection is a wrapper around github.com/fullstorydev/grpcui/standalone.HandlerViaReflection to provide the theme.
Types ¶
type HandlerOption ¶ added in v0.2.0
type HandlerOption = standalone.HandlerOption
HandlerOption is an alias of github.com/fullstorydev/grpcui/standalone.HandlerOption to avoid multiple imports.
func AddDescription ¶
func AddDescription(desc string) HandlerOption
AddDescription adds description after the target section in the header.
Click to show internal directories.
Click to hide internal directories.