injector

package
v0.0.0-...-692e367 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExposeHTTP

type ExposeHTTP struct {
	Method string
	Path   string
}

type ExposeWS

type ExposeWS struct {
	Method string
	Path   string
}

type File

type File struct {
	*descriptorpb.FileDescriptorProto
}

type ImportOption

type ImportOption struct {
	Path string
}

type Injector

type Injector interface {
	Inject() error
	Options() Options
}

func New

func New(opts ...Option) Injector

type MessageOption

type MessageOption struct {
	Name string
}

type MethodOption

type MethodOption struct {
	Name           string
	ExposeHTTP     *ExposeHTTP
	ExposeWS       *ExposeWS
	RPCProxy       *RpcProxy
	SubscriptionWS bool
}

type Option

type Option func(o *Options)

func Method

func Method(m MethodOption) Option

func Plugin

func Plugin(p PluginOption) Option

func Workdir

func Workdir(d string) Option

type Options

type Options struct {
	Workdir string
	Methods []MethodOption
	Plugins []PluginOption
}

type PluginOption

type PluginOption struct {
	Name   string
	Prefix string
}

type RpcProxy

type RpcProxy struct {
	Service string
	Method  string
}

type SubscriptionWS

type SubscriptionWS struct {
	Service string
	Method  string
}

Jump to

Keyboard shortcuts

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