annotation_service

package module
v0.0.0-...-4b98d92 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

README

annotation-service

analyze interface annotation to service

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnalysisFileService

func AnalysisFileService(file string, serviceName, namespace string) (apiAnnotate map[string]*ApiAnnotate, err error)

func AnalysisServiceWithFileToken

func AnalysisServiceWithFileToken(fileData []byte, serviceName, namespace string) (apiAnnotate map[string]*ApiAnnotate, err error)

Types

type ApiAnnotate

type ApiAnnotate struct {
	Interface string
	Apis      []ApiAnnotateItem
}

type ApiAnnotateItem

type ApiAnnotateItem struct {
	Handler string
	Params  []string
	Returns []string
	Title   string
	Options map[string]string
}

type Service

type Service struct {
	InterfaceName string
	ServiceName   string
	OtherOptions  map[string]string
	ApiAnnotates  map[string]*ApiAnnotate
}

func GetAllService

func GetAllService(file string) (res []Service, err error)

Jump to

Keyboard shortcuts

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