Documentation ¶
Index ¶
- func Func2Name(f EntrypointFunc) string
- type ArgValType
- type CreateCustomFunc
- type Customer
- type EntrypointArgs
- func (e EntrypointArgs) Get(name string, typ ArgValType) (interface{}, error)
- func (e EntrypointArgs) GetBool(name string) (bool, error)
- func (e EntrypointArgs) GetInt(name string) (int, error)
- func (e EntrypointArgs) GetIntSlice(name string) ([]int, error)
- func (e EntrypointArgs) GetReader(name string) (io.Reader, error)
- func (e EntrypointArgs) GetString(name string) string
- func (e EntrypointArgs) GetStringSlice(name string) []string
- func (e EntrypointArgs) GetURL(name string) (string, error)
- type EntrypointBundle
- type EntrypointFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Func2Name ¶
func Func2Name(f EntrypointFunc) string
Func2Name returns the name of the function 'f', it contains the full package name.
Types ¶
type ArgValType ¶
type ArgValType int
type CreateCustomFunc ¶
type CreateCustomFunc func() Customer
CreateCustomFunc can be used to create a custom object for the function The custom object must implement the 'Close' method, godriver can use this method to close or release the custom object.
type EntrypointArgs ¶
EntrypointArgs is the 'Args' argument of the entrypoint
func (EntrypointArgs) Get ¶
func (e EntrypointArgs) Get(name string, typ ArgValType) (interface{}, error)
Get returns the value of the key 'name' in map, if the 'name' not existed, return nil.
func (EntrypointArgs) GetIntSlice ¶
func (e EntrypointArgs) GetIntSlice(name string) ([]int, error)
func (EntrypointArgs) GetString ¶
func (e EntrypointArgs) GetString(name string) string
func (EntrypointArgs) GetStringSlice ¶
func (e EntrypointArgs) GetStringSlice(name string) []string
type EntrypointBundle ¶
EntrypointBundle
type EntrypointFunc ¶
type EntrypointFunc func(context.Context, EntrypointBundle, EntrypointArgs) (map[string]string, error)
EntrypointFunc defines the entrypoint type of the function
Click to show internal directories.
Click to hide internal directories.