varlinkservice

package
v0.0.0-...-b4f51b2 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 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 Backend

type Backend interface {
	GetInfo(*GetInfoIn) (*GetInfoOut, error)
	GetInterfaceDescription(*GetInterfaceDescriptionIn) (*GetInterfaceDescriptionOut, error)
}

type Client

type Client struct {
	*govarlink.Client
}

func (Client) GetInfo

func (c Client) GetInfo(in *GetInfoIn) (*GetInfoOut, error)

func (Client) GetInterfaceDescription

func (c Client) GetInterfaceDescription(in *GetInterfaceDescriptionIn) (*GetInterfaceDescriptionOut, error)

type ExpectedMoreError

type ExpectedMoreError struct{}

func (*ExpectedMoreError) Error

func (err *ExpectedMoreError) Error() string

type GetInfoIn

type GetInfoIn struct{}

type GetInfoOut

type GetInfoOut struct {
	Interfaces []string `json:"interfaces"`
	Product    string   `json:"product"`
	Url        string   `json:"url"`
	Vendor     string   `json:"vendor"`
	Version    string   `json:"version"`
}

type GetInterfaceDescriptionIn

type GetInterfaceDescriptionIn struct {
	Interface string `json:"interface"`
}

type GetInterfaceDescriptionOut

type GetInterfaceDescriptionOut struct {
	Description string `json:"description"`
}

type Handler

type Handler struct {
	Backend Backend
}
func (h Handler) HandleVarlink(call *govarlink.ServerCall, req *govarlink.ServerRequest) error

type InterfaceNotFoundError

type InterfaceNotFoundError struct {
	Interface string `json:"interface"`
}

func (*InterfaceNotFoundError) Error

func (err *InterfaceNotFoundError) Error() string

type InvalidParameterError

type InvalidParameterError struct {
	Parameter string `json:"parameter"`
}

func (*InvalidParameterError) Error

func (err *InvalidParameterError) Error() string

type MethodNotFoundError

type MethodNotFoundError struct {
	Method string `json:"method"`
}

func (*MethodNotFoundError) Error

func (err *MethodNotFoundError) Error() string

type MethodNotImplementedError

type MethodNotImplementedError struct {
	Method string `json:"method"`
}

func (*MethodNotImplementedError) Error

func (err *MethodNotImplementedError) Error() string

type PermissionDeniedError

type PermissionDeniedError struct{}

func (*PermissionDeniedError) Error

func (err *PermissionDeniedError) Error() string

Jump to

Keyboard shortcuts

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