Documentation ¶
Index ¶
- Variables
- func WithApiKeyAuthentication(customApiHeader string) func(target *spec.Swagger)
- func WithBearerAuthentication() func(target *spec.Swagger)
- func WithVersion(version string) func(target *spec.Swagger)
- type SwaggerOpt
- type Writer
- func (sw *Writer) Enum(enum *proto.Enum)
- func (sw *Writer) Get() []byte
- func (sw *Writer) Handlers() []proto.Handler
- func (sw *Writer) Import(i *proto.Import)
- func (sw *Writer) Message(msg *proto.Message)
- func (sw *Writer) Package(pkg *proto.Package)
- func (sw *Writer) RPC(rpc *proto.RPC)
- func (sw *Writer) Save(filename string) error
- func (sw *Writer) Service(service *proto.Service)
- func (sw *Writer) WalkFile() error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoServiceDefinition = errors.New("no service definition found")
Functions ¶
func WithVersion ¶
Types ¶
type SwaggerOpt ¶
Click to show internal directories.
Click to hide internal directories.