driver

package
v0.107.21 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: Apache-2.0 Imports: 15 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 {
	Call(context.Context, string, Params, any) error
}

func NewBackend

func NewBackend() Backend

type Fault

type Fault struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

func (*Fault) Error

func (f *Fault) Error() string

type Params

type Params map[string]json.RawMessage

type Request

type Request struct {
	JSONRPC string          `json:"jsonrpc"`
	ID      json.RawMessage `json:"id"`
	Method  string          `json:"method"`
	Params  Params          `json:"params"`
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func New

func New(backend Backend, token string) *Server

func (*Server) Serve

func (s *Server) Serve(ctx context.Context, in io.Reader, out io.Writer) error

type Snapshot

type Snapshot struct {
	computer.AppState
	Revision string `json:"revision"`
}

Jump to

Keyboard shortcuts

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