apidef

package
v0.0.0-...-351714f Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2014 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Types      []APIClass
	Functions  []APIFunction
	ErrorTypes []APIClass
	Features   []APIFeature
}

An API represents the API as advertised by Neovim

func GetAPI

func GetAPI(ad *msgpack.Decoder) (*API, error)

type APIClass

type APIClass struct {
	Name string
	Id   int
}

An APIClass represents a class as defined as part of the API

type APIFeature

type APIFeature struct {
	Name    string
	Methods []string
}

type APIFunction

type APIFunction struct {
	Name              string
	ReturnType        string
	ID                uint32
	CanFail           bool
	Deferred          bool
	ReceivesChannelID bool
	Parameters        []APIFunctionParameter
}

An APIFunction represents a class as defined as part of the API

type APIFunctionParameter

type APIFunctionParameter struct {
	Type, Name string
}

An APIFunctionParameter represents a function parameters as defined by an APIFunction

Jump to

Keyboard shortcuts

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