openapiv2

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(handlerOpts ...HandlerOption) http.Handler

Types

type HandlerOption

type HandlerOption func(opt *options)

func WithGeneratorOptions

func WithGeneratorOptions(opts ...generator.Option) HandlerOption

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service is service

func New

func New(srv *grpc.Server, opts ...generator.Option) *Service

New service

func (*Service) GetServiceOpenAPI

func (s *Service) GetServiceOpenAPI(ctx context.Context, in *metadata.GetServiceDescRequest, onlyRPC bool) (string, error)

GetServiceOpenAPI get service open api

func (*Service) GetServicesOpenAPI

func (s *Service) GetServicesOpenAPI(ctx context.Context, in []metadata.GetServiceDescRequest, onlyRPC bool) (string, error)

GetServicesOpenAPI get service open api

func (*Service) ListServices

ListServices list services

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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