swagger

package
v0.0.0-...-4f44c80 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoServiceDefinition = errors.New("no service definition found")

Functions

func WithBearerAuthentication

func WithBearerAuthentication() func(target *spec.Swagger)

Types

type SwaggerOpt

type SwaggerOpt func(*spec.Swagger)

type Writer

type Writer struct {
	*spec.Swagger
	// contains filtered or unexported fields
}

func NewWriter

func NewWriter(filename, hostname, pathPrefix string, swaggerOpt ...SwaggerOpt) *Writer

func (*Writer) Enum

func (sw *Writer) Enum(enum *proto.Enum)

func (*Writer) Get

func (sw *Writer) Get() []byte

func (*Writer) Handlers

func (sw *Writer) Handlers() []proto.Handler

func (*Writer) Import

func (sw *Writer) Import(i *proto.Import)

func (*Writer) Message

func (sw *Writer) Message(msg *proto.Message)

func (*Writer) Package

func (sw *Writer) Package(pkg *proto.Package)

func (*Writer) RPC

func (sw *Writer) RPC(rpc *proto.RPC)

func (*Writer) Save

func (sw *Writer) Save(filename string) error

func (*Writer) WalkFile

func (sw *Writer) WalkFile() error

Jump to

Keyboard shortcuts

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