Documentation ¶
Index ¶
- Constants
- func CurrentCallingMethodName(skip int) string
- func GetMethodUniqueKey(interfaceImplId, methodName string) string
- func GetTCPListener(port string) (net.Listener, error)
- func IsInvocationFailed(returnValues []reflect.Value) (bool, error)
- func IsTraceEntrance(entranceMethodFullName string) bool
- func ParseSDIDAndMethodFromUniqueKey(uniqueKey string) (string, string)
- func ReflectValues2String(values []reflect.Value, maxDepth, maxLength int) string
- func ReflectValues2Strings(values []reflect.Value, maxDepth, maxLength int) []string
- type AllInterfaceMetadata
- type Config
- type ConfigLoader
- type DebugServerConfig
- type FieldMatcher
- type MethodMetadata
- type RequestParam
- type Response
- type ServiceFoo
- type StructMetadata
- type User
Constants ¶
View Source
const IOCGolangAOPConfigPrefix = "ioc-golang.aop"
View Source
const (
ProxyMethodPrefix = "github.com/cc-cheunggg/ioc-golang/aop."
)
Variables ¶
This section is empty.
Functions ¶
func GetMethodUniqueKey ¶
func IsTraceEntrance ¶
func ReflectValues2String ¶
Types ¶
type AllInterfaceMetadata ¶
type AllInterfaceMetadata map[string]*StructMetadata
type Config ¶
type Config struct { AppName string `yaml:"app-name"` Disable bool `yaml:"disable"` DebugServer DebugServerConfig `yaml:"debug-server"` }
type ConfigLoader ¶
type ConfigLoader func(config *Config)
type DebugServerConfig ¶
type FieldMatcher ¶
type MethodMetadata ¶
type RequestParam ¶
type RequestParam struct {
User *User
}
type ServiceFoo ¶
type ServiceFoo struct { }
func (*ServiceFoo) Invoke ¶
func (s *ServiceFoo) Invoke(ctx context.Context, param *RequestParam) (*Response, error)
type StructMetadata ¶
type StructMetadata struct {
MethodMetadata map[string]*MethodMetadata
}
Click to show internal directories.
Click to hide internal directories.