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.TypeOf(api.MinerSubsystem(0)): api.MinerSubsystem(1), reflect.TypeOf(auth.Permission("")): auth.Permission("write"), reflect.TypeOf(""): "string value", reflect.TypeOf(uint64(42)): uint64(42), reflect.TypeOf(byte(7)): byte(7), reflect.TypeOf([]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.