rpc

package
v0.0.35 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: BSD-3-Clause Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateTypeScript added in v0.0.14

func GenerateTypeScript(opts Opts) error

Types

type Opts

type Opts struct {
	OutDest   string
	RouteDefs []RouteDef
}

type Procedure

type Procedure string

type RouteDef

type RouteDef struct {
	Key    string
	Type   Type
	Input  any
	Output any
}

type Type

type Type string
const (
	TypeQuery    Type = "query"
	TypeMutation Type = "mutation"
)

Jump to

Keyboard shortcuts

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