server

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2020 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowEllipsis

func AllowEllipsis(ctx context.Context) bool

func Endpoints

func Endpoints(iface types.Interface, info *meta.GenerationInfo) Code

func IsContextFirst

func IsContextFirst(fields []types.Variable) bool

func IsErrorLast

func IsErrorLast(fields []types.Variable) bool

func MakeService

func MakeService(srcPath, outPath string, services []types.Interface) (err error)

func MakeServices

func MakeServices(serviceDirectory, outPath string) (err error)

func SourcePackageImport

func SourcePackageImport(ctx context.Context) string

func Tags

func Tags(ctx context.Context) tags.DocTags

func WithSourcePackageImport

func WithSourcePackageImport(parent context.Context, val string) context.Context

func WithTags

func WithTags(parent context.Context, tt tags.DocTags) context.Context

Types

type FileProxy

type FileProxy struct {
	*File
}

func NewFileProxy

func NewFileProxy(packageName string) *FileProxy

func (*FileProxy) Save

func (fw *FileProxy) Save(path string) (err error)

Save method call Save of original File and call goimports on saved file

Jump to

Keyboard shortcuts

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