plugin_protos

package
v0.0.0-...-41a8cc5 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: AGPL-3.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_plugin_protos_webui_plugin_proto protoreflect.FileDescriptor

Functions

func RegisterPluginServiceServer

func RegisterPluginServiceServer(s *grpc.Server, srv PluginServiceServer)

Types

type Empty

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

func (*Empty) Descriptor deprecated

func (*Empty) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

func (x *Empty) ProtoReflect() protoreflect.Message

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string
type MenuItem struct {
	Name     string      `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Path     string      `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	Subitems []*MenuItem `protobuf:"bytes,3,rep,name=subitems,proto3" json:"subitems,omitempty"`
	// contains filtered or unexported fields
}
func (*MenuItem) Descriptor() ([]byte, []int)

Deprecated: Use MenuItem.ProtoReflect.Descriptor instead.

func (x *MenuItem) GetName() string
func (x *MenuItem) GetPath() string
func (x *MenuItem) GetSubitems() []*MenuItem
func (*MenuItem) ProtoMessage()
func (x *MenuItem) ProtoReflect() protoreflect.Message
func (x *MenuItem) Reset()
func (x *MenuItem) String() string

type Plugin

type Plugin struct {
	Name      string      `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`           // a human-friendly identifier (name) for the extension
	Extension string      `protobuf:"bytes,2,opt,name=extension,proto3" json:"extension,omitempty"` // the domain/path of the extension
	Paths     []string    `protobuf:"bytes,10,rep,name=paths,proto3" json:"paths,omitempty"`
	Menus     []*MenuItem `protobuf:"bytes,11,rep,name=menus,proto3" json:"menus,omitempty"`
	// contains filtered or unexported fields
}

func (*Plugin) Descriptor deprecated

func (*Plugin) Descriptor() ([]byte, []int)

Deprecated: Use Plugin.ProtoReflect.Descriptor instead.

func (*Plugin) GetExtension

func (x *Plugin) GetExtension() string

func (*Plugin) GetMenus

func (x *Plugin) GetMenus() []*MenuItem

func (*Plugin) GetName

func (x *Plugin) GetName() string

func (*Plugin) GetPaths

func (x *Plugin) GetPaths() []string

func (*Plugin) ProtoMessage

func (*Plugin) ProtoMessage()

func (*Plugin) ProtoReflect

func (x *Plugin) ProtoReflect() protoreflect.Message

func (*Plugin) Reset

func (x *Plugin) Reset()

func (*Plugin) String

func (x *Plugin) String() string

type PluginServiceClient

type PluginServiceClient interface {
	Settings(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Plugin, error)
	HandleRequest(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}

PluginServiceClient is the client API for PluginService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewPluginServiceClient

func NewPluginServiceClient(cc grpc.ClientConnInterface) PluginServiceClient

type PluginServiceServer

type PluginServiceServer interface {
	Settings(context.Context, *Empty) (*Plugin, error)
	HandleRequest(context.Context, *Request) (*Response, error)
	// contains filtered or unexported methods
}

PluginServiceServer is the server API for PluginService service. All implementations must embed UnimplementedPluginServiceServer for forward compatibility

type Request

type Request struct {
	Route      string            `protobuf:"bytes,1,opt,name=route,proto3" json:"route,omitempty"`
	Method     string            `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
	Path       string            `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
	PathParams map[string]string `` /* 179-byte string literal not displayed */
	// map<string, string> headers = 5;
	Body      string `protobuf:"bytes,6,opt,name=body,proto3" json:"body,omitempty"`
	AuthToken string `protobuf:"bytes,7,opt,name=auth_token,json=authToken,proto3" json:"auth_token,omitempty"`
	// contains filtered or unexported fields
}

func (*Request) Descriptor deprecated

func (*Request) Descriptor() ([]byte, []int)

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetAuthToken

func (x *Request) GetAuthToken() string

func (*Request) GetBody

func (x *Request) GetBody() string

func (*Request) GetMethod

func (x *Request) GetMethod() string

func (*Request) GetPath

func (x *Request) GetPath() string

func (*Request) GetPathParams

func (x *Request) GetPathParams() map[string]string

func (*Request) GetRoute

func (x *Request) GetRoute() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

func (x *Request) ProtoReflect() protoreflect.Message

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

type Response

type Response struct {
	StatusCode int32             `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`
	Headers    map[string]string ``                                                                /* 155-byte string literal not displayed */
	Body       string            `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`   // response body, will be rendered in the standard page template unless raw = true
	Title      string            `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"` // title of the HTML page
	Raw        bool              `protobuf:"varint,5,opt,name=raw,proto3" json:"raw,omitempty"`    // disables wrapping the body in the page template, the raw body value will be returned to the client
	// contains filtered or unexported fields
}

func (*Response) Descriptor deprecated

func (*Response) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetBody

func (x *Response) GetBody() string

func (*Response) GetHeaders

func (x *Response) GetHeaders() map[string]string

func (*Response) GetRaw

func (x *Response) GetRaw() bool

func (*Response) GetStatusCode

func (x *Response) GetStatusCode() int32

func (*Response) GetTitle

func (x *Response) GetTitle() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

func (x *Response) ProtoReflect() protoreflect.Message

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type UnimplementedPluginServiceServer

type UnimplementedPluginServiceServer struct {
}

UnimplementedPluginServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedPluginServiceServer) HandleRequest

func (UnimplementedPluginServiceServer) Settings

type UnsafePluginServiceServer

type UnsafePluginServiceServer interface {
	// contains filtered or unexported methods
}

UnsafePluginServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PluginServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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