Documentation
¶
Index ¶
- func NewAmqpEncodeDecodeParser(path string, publisherNames []string, subscriberNames []string) *amqpEncodeDecodeParser
- func NewEndpointsParser(path string, serviceIface *types.Interface) *endpointsParser
- func NewImplementationParser(path string, serviceInterface *types.Interface) *implementationParser
- func NewTransportEncodeDecodeParser(path string, serviceIface *types.Interface) *transportEncodeDecodeParser
- func NewTransportRequestResponseParser(path string, serviceIface *types.Interface) *transportRequestResponseParser
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAmqpEncodeDecodeParser ¶ added in v0.5.0
func NewEndpointsParser ¶
func NewImplementationParser ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewServiceParser ¶
func (*Service) FindInterface ¶
FindInterface searches for an interface with the given name
func (*Service) HasFunction ¶
HasFunction checks whether the file has a function with the given name
func (*Service) ParseFile ¶
func (p *Service) ParseFile() (err error)
ParseFile will use go-astra to parse the service-File
func (*Service) ValidateInterface ¶
ValidateInterface will check if the interface meets Godin's requirements:
+ every method must have at least one comment line + first parameter must be 'context.Context' + last return parameter must be ' error' + all results must be named + if a custom type is used, it MUST be defined in the same File
Click to show internal directories.
Click to hide internal directories.