helpers

package
v0.0.0-...-3fcbef7 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMethodImports

func AddMethodImports(file *files.GoFile, method types.Method)

func AddTypesImports

func AddTypesImports(file file.File, service types.Service)

func FilteredArguments

func FilteredArguments(args []*types.Argument, filter func(arg *types.Argument) bool) (as []*types.Argument)

func FilteredFields

func FilteredFields(fields []*types.Field, filter func(field *types.Field) bool) (fs []*types.Field)

func FilteredMethods

func FilteredMethods(methods []types.Method, filter func(method types.Method) bool) (ms []types.Method)

func GenerateExportedStruct

func GenerateExportedStruct(file *files.GoFile, name string, fields []*types.Field)

func GenerateFunc

func GenerateFunc(file *files.GoFile, receiver string, name string, args []string, results []string, f func())

func GenerateStruct

func GenerateStruct(file *files.GoFile, name string, fields []*types.Field)

func GenerateUnexportedStruct

func GenerateUnexportedStruct(file *files.GoFile, name string, fields []*types.Field)

func GetExportedMethodSignature

func GetExportedMethodSignature(receiver string, method types.Method) string

func GetFieldTagsString

func GetFieldTagsString(tags map[string][]string) string

func GetFuncSignature

func GetFuncSignature(receiver string, name string, args []string, results []string) string

func GetLoggedArgumentsForMethod

func GetLoggedArgumentsForMethod(method types.Method) (args []*types.Argument)

func GetLoggedArgumentsLenForMethod

func GetLoggedArgumentsLenForMethod(method types.Method) (args []*types.Argument)

func GetLoggedResultsForMethod

func GetLoggedResultsForMethod(method types.Method) (results []*types.Field)

func GetLoggedResultsLenForMethod

func GetLoggedResultsLenForMethod(method types.Method) (fields []*types.Field)

func GetMethodArguments

func GetMethodArguments(args []*types.Argument) []string

func GetMethodArgumentsFromRequestInCall

func GetMethodArgumentsFromRequestInCall(args []*types.Argument) (a []string)

func GetMethodArgumentsInCall

func GetMethodArgumentsInCall(args []*types.Argument) (a []string)

func GetMethodResults

func GetMethodResults(results []*types.Field) []string

func GetMethodsWithCachingEnabled

func GetMethodsWithCachingEnabled(service types.Service) (ms []types.Method)

func GetMethodsWithGRPCClientEnabled

func GetMethodsWithGRPCClientEnabled(service types.Service) (ms []types.Method)

func GetMethodsWithGRPCEnabled

func GetMethodsWithGRPCEnabled(service types.Service) (ms []types.Method)

func GetMethodsWithGRPCServerEnabled

func GetMethodsWithGRPCServerEnabled(service types.Service) (ms []types.Method)

func GetMethodsWithHTTPClientEnabled

func GetMethodsWithHTTPClientEnabled(service types.Service) (ms []types.Method)

func GetMethodsWithHTTPEnabled

func GetMethodsWithHTTPEnabled(service types.Service) (ms []types.Method)

func GetMethodsWithHTTPServerEnabled

func GetMethodsWithHTTPServerEnabled(service types.Service) (ms []types.Method)

func GetMethodsWithLoggingEnabled

func GetMethodsWithLoggingEnabled(service types.Service) (ms []types.Method)

func GetMethodsWithMethodStubsEnabled

func GetMethodsWithMethodStubsEnabled(service types.Service) (ms []types.Method)

func GetMethodsWithMetricsEnabled

func GetMethodsWithMetricsEnabled(service types.Service) (ms []types.Method)

func GetMethodsWithMiddlewareEnabled

func GetMethodsWithMiddlewareEnabled(service types.Service) (ms []types.Method)

func GetMethodsWithTracingEnabled

func GetMethodsWithTracingEnabled(service types.Service) (ms []types.Method)

func GetMethodsWithValidatingEnabled

func GetMethodsWithValidatingEnabled(service types.Service) (ms []types.Method)

func GetMethodsWithValidatorsEnabled

func GetMethodsWithValidatorsEnabled(service types.Service) (ms []types.Method)

func GetName

func GetName(name string, alias string) string

func GetResultsVars

func GetResultsVars(results []*types.Field) (a []string)

func GetResultsVarsFromResponse

func GetResultsVarsFromResponse(results []*types.Field) (a []string)

func GetUnexportedMethodSignature

func GetUnexportedMethodSignature(receiver string, method types.Method) string

func HasLoggedArguments

func HasLoggedArguments(method types.Method) bool

func HasLoggedErrors

func HasLoggedErrors(service types.Service) bool

func HasLoggedResults

func HasLoggedResults(method types.Method) bool

func HasLoggeds

func HasLoggeds(service types.Service) bool

func IsCachaeble

func IsCachaeble(service types.Service) bool

func IsCachingEnabled

func IsCachingEnabled(service types.Service) bool

func IsCircuitBreakingEnabled

func IsCircuitBreakingEnabled(service types.Service) bool

func IsCounterMetricEnabled

func IsCounterMetricEnabled(service types.Service) bool

func IsFrequencyMetricEnabled

func IsFrequencyMetricEnabled(service types.Service) bool

func IsGRPCClientEnabled

func IsGRPCClientEnabled(service types.Service) bool

func IsGRPCEnabled

func IsGRPCEnabled(service types.Service) bool

func IsGRPCServerEnabled

func IsGRPCServerEnabled(service types.Service) bool

func IsHTTPClientEnabled

func IsHTTPClientEnabled(service types.Service) bool

func IsHTTPEnabled

func IsHTTPEnabled(service types.Service) bool

func IsHTTPServerEnabled

func IsHTTPServerEnabled(service types.Service) bool

func IsLatencyMetricEnabled

func IsLatencyMetricEnabled(service types.Service) bool

func IsLoggingEnabled

func IsLoggingEnabled(service types.Service) bool

func IsMethodStubsEnabled

func IsMethodStubsEnabled(service types.Service) bool

func IsMetricsEnabled

func IsMetricsEnabled(service types.Service) bool

func IsMiddlewareEnabled

func IsMiddlewareEnabled(service types.Service) bool

func IsRateLimitingEnabled

func IsRateLimitingEnabled(service types.Service) bool

func IsRecoveringEnabled

func IsRecoveringEnabled(service types.Service) bool

func IsServerEnabled

func IsServerEnabled(service types.Service) bool

func IsTracingEnabled

func IsTracingEnabled(service types.Service) bool

func IsValidatable

func IsValidatable(service types.Service) bool

func IsValidatingEnabled

func IsValidatingEnabled(service types.Service) bool

func IsValidatorsEnabled

func IsValidatorsEnabled(service types.Service) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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