proto

package
v0.10.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_plugin_manager_proto protoreflect.FileDescriptor

Functions

func RegisterPluginManagerServer

func RegisterPluginManagerServer(s *grpc.Server, srv PluginManagerServer)

Types

type ConnectionConfig

type ConnectionConfig struct {
	Plugin          string `protobuf:"bytes,1,opt,name=plugin,proto3" json:"plugin,omitempty"`
	PluginShortName string `protobuf:"bytes,2,opt,name=plugin_short_name,json=pluginShortName,proto3" json:"plugin_short_name,omitempty"`
	Config          string `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"`
	// contains filtered or unexported fields
}

func (*ConnectionConfig) Descriptor deprecated

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

Deprecated: Use ConnectionConfig.ProtoReflect.Descriptor instead.

func (*ConnectionConfig) GetConfig

func (x *ConnectionConfig) GetConfig() string

func (*ConnectionConfig) GetPlugin

func (x *ConnectionConfig) GetPlugin() string

func (*ConnectionConfig) GetPluginShortName

func (x *ConnectionConfig) GetPluginShortName() string

func (*ConnectionConfig) ProtoMessage

func (*ConnectionConfig) ProtoMessage()

func (*ConnectionConfig) ProtoReflect

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

func (*ConnectionConfig) Reset

func (x *ConnectionConfig) Reset()

func (*ConnectionConfig) String

func (x *ConnectionConfig) String() string

type GetRequest

type GetRequest struct {
	Connection string `protobuf:"bytes,1,opt,name=connection,proto3" json:"connection,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRequest) Descriptor deprecated

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

Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.

func (*GetRequest) GetConnection

func (x *GetRequest) GetConnection() string

func (*GetRequest) ProtoMessage

func (*GetRequest) ProtoMessage()

func (*GetRequest) ProtoReflect

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

func (*GetRequest) Reset

func (x *GetRequest) Reset()

func (*GetRequest) String

func (x *GetRequest) String() string

type GetResponse

type GetResponse struct {
	Reattach *ReattachConfig `protobuf:"bytes,1,opt,name=reattach,proto3" json:"reattach,omitempty"`
	// contains filtered or unexported fields
}

func (*GetResponse) Descriptor deprecated

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

Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.

func (*GetResponse) GetReattach

func (x *GetResponse) GetReattach() *ReattachConfig

func (*GetResponse) ProtoMessage

func (*GetResponse) ProtoMessage()

func (*GetResponse) ProtoReflect

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

func (*GetResponse) Reset

func (x *GetResponse) Reset()

func (*GetResponse) String

func (x *GetResponse) String() string

type NetAddr

type NetAddr struct {
	Network string `protobuf:"bytes,1,opt,name=Network,proto3" json:"Network,omitempty"` // name of the network (for example, "tcp", "udp")
	Address string `protobuf:"bytes,2,opt,name=Address,proto3" json:"Address,omitempty"` // string form of address (for example, "192.0.2.1:25", "[2001:db8::1]:80")
	// contains filtered or unexported fields
}

func (*NetAddr) Descriptor deprecated

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

Deprecated: Use NetAddr.ProtoReflect.Descriptor instead.

func (*NetAddr) GetAddress

func (x *NetAddr) GetAddress() string

func (*NetAddr) GetNetwork

func (x *NetAddr) GetNetwork() string

func (*NetAddr) ProtoMessage

func (*NetAddr) ProtoMessage()

func (*NetAddr) ProtoReflect

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

func (*NetAddr) Reset

func (x *NetAddr) Reset()

func (*NetAddr) String

func (x *NetAddr) String() string

type PluginManagerClient

type PluginManagerClient interface {
	Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
	Shutdown(ctx context.Context, in *ShutdownRequest, opts ...grpc.CallOption) (*ShutdownResponse, error)
}

PluginManagerClient is the client API for PluginManager service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type PluginManagerServer

type PluginManagerServer interface {
	Get(context.Context, *GetRequest) (*GetResponse, error)
	Shutdown(context.Context, *ShutdownRequest) (*ShutdownResponse, error)
}

PluginManagerServer is the server API for PluginManager service.

type ReattachConfig

type ReattachConfig struct {
	Protocol        string   `protobuf:"bytes,1,opt,name=protocol,proto3" json:"protocol,omitempty"`
	ProtocolVersion int64    `protobuf:"varint,2,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version,omitempty"`
	Addr            *NetAddr `protobuf:"bytes,3,opt,name=addr,proto3" json:"addr,omitempty"`
	Pid             int64    `protobuf:"varint,4,opt,name=pid,proto3" json:"pid,omitempty"`
	// contains filtered or unexported fields
}

func NewReattachConfig

func NewReattachConfig(src *plugin.ReattachConfig) *ReattachConfig

func (*ReattachConfig) Convert

func (r *ReattachConfig) Convert() *plugin.ReattachConfig

Convert converts from a protobuf reattach config to a plugin.ReattachConfig

func (*ReattachConfig) Descriptor deprecated

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

Deprecated: Use ReattachConfig.ProtoReflect.Descriptor instead.

func (*ReattachConfig) GetAddr

func (x *ReattachConfig) GetAddr() *NetAddr

func (*ReattachConfig) GetPid

func (x *ReattachConfig) GetPid() int64

func (*ReattachConfig) GetProtocol

func (x *ReattachConfig) GetProtocol() string

func (*ReattachConfig) GetProtocolVersion

func (x *ReattachConfig) GetProtocolVersion() int64

func (*ReattachConfig) ProtoMessage

func (*ReattachConfig) ProtoMessage()

func (*ReattachConfig) ProtoReflect

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

func (*ReattachConfig) Reset

func (x *ReattachConfig) Reset()

func (*ReattachConfig) String

func (x *ReattachConfig) String() string

type ShutdownRequest

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

func (*ShutdownRequest) Descriptor deprecated

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

Deprecated: Use ShutdownRequest.ProtoReflect.Descriptor instead.

func (*ShutdownRequest) ProtoMessage

func (*ShutdownRequest) ProtoMessage()

func (*ShutdownRequest) ProtoReflect

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

func (*ShutdownRequest) Reset

func (x *ShutdownRequest) Reset()

func (*ShutdownRequest) String

func (x *ShutdownRequest) String() string

type ShutdownResponse

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

func (*ShutdownResponse) Descriptor deprecated

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

Deprecated: Use ShutdownResponse.ProtoReflect.Descriptor instead.

func (*ShutdownResponse) ProtoMessage

func (*ShutdownResponse) ProtoMessage()

func (*ShutdownResponse) ProtoReflect

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

func (*ShutdownResponse) Reset

func (x *ShutdownResponse) Reset()

func (*ShutdownResponse) String

func (x *ShutdownResponse) String() string

type SimpleAddr

type SimpleAddr struct {
	NetworkString string `json:"Network"`
	AddressString string `json:"String"`
}

func NewSimpleAddr

func NewSimpleAddr(addr net.Addr) *SimpleAddr

func (SimpleAddr) Network

func (s SimpleAddr) Network() string

func (SimpleAddr) String

func (s SimpleAddr) String() string

type UnimplementedPluginManagerServer

type UnimplementedPluginManagerServer struct {
}

UnimplementedPluginManagerServer can be embedded to have forward compatible implementations.

func (*UnimplementedPluginManagerServer) Get

func (*UnimplementedPluginManagerServer) Shutdown

Jump to

Keyboard shortcuts

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