doc

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(w http.ResponseWriter, r *http.Request)

func Register

func Register(svc interface{})

Types

type FieldInfo added in v0.0.17

type FieldInfo struct {
	Name string
	Type string
	Tag  string
}

FieldInfo represents a field in a struct.

type MethodInfo

type MethodInfo struct {
	Name   string
	Input  *TypeInfo // Input parameter type information
	Output *TypeInfo // Return value type information
}

MethodInfo represents a method definition in an interface.

type ServiceInfo

type ServiceInfo struct {
	Name    string
	Package string
	Methods []MethodInfo
}

ServiceInfo represents information about an interface.

func ParseService

func ParseService(ifacePtr interface{}) (*ServiceInfo, error)

ParseService parses method information from an interface type. Note: input must be a pointer to an interface type (e.g., (*MyInterface)(nil)) or a reflect.Type (more recommended), but for API simplification, interface{} is accepted here.

func (*ServiceInfo) String

func (ii *ServiceInfo) String() string

String implements the string representation of ServiceInfo (for easy printing).

type TypeInfo added in v0.0.17

type TypeInfo struct {
	Name   string
	Fields []FieldInfo
}

TypeInfo represents information about a data type.

Jump to

Keyboard shortcuts

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