Documentation
¶
Index ¶
- Constants
- Variables
- func ExampleValue(method string, t, parent reflect.Type) interface{}
- func Generate(out io.Writer, iface, pkg string, ainfo ApiASTInfo) error
- func GetAPIType(name, pkg string) (i interface{}, t reflect.Type, permStruct []reflect.Type)
- func MethodGroupFromName(mn string) string
- type ApiASTInfo
- type Method
- type MethodGroup
- type Visitor
Constants ¶
View Source
const NoComment = "There are not yet any comments for this method."
Variables ¶
View Source
var ExampleValues = map[reflect.Type]interface{}{ reflect.TypeFor[api.MinerSubsystem](): api.MinerSubsystem(1), reflect.TypeFor[auth.Permission](): auth.Permission("write"), reflect.TypeFor[string](): "string value", reflect.TypeFor[uint64](): uint64(42), reflect.TypeFor[byte](): byte(7), reflect.TypeFor[[]byte](): []byte("byte array"), }
Functions ¶
func ExampleValue ¶ added in v1.9.0
func Generate ¶ added in v1.30.0
func Generate(out io.Writer, iface, pkg string, ainfo ApiASTInfo) error
func GetAPIType ¶ added in v1.9.0
func MethodGroupFromName ¶ added in v1.9.0
Types ¶
type ApiASTInfo ¶ added in v1.30.0
func ParseApiASTInfo ¶ added in v1.9.0
func ParseApiASTInfo(apiFile, iface, pkg, dir string) (ApiASTInfo, error)
type MethodGroup ¶
Click to show internal directories.
Click to hide internal directories.