proto

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_plugin_manager_proto protoreflect.FileDescriptor
View Source
var PluginManager_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.PluginManager",
	HandlerType: (*PluginManagerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Get",
			Handler:    _PluginManager_Get_Handler,
		},
		{
			MethodName: "Shutdown",
			Handler:    _PluginManager_Shutdown_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "plugin_manager.proto",
}

PluginManager_ServiceDesc is the grpc.ServiceDesc for PluginManager service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterPluginManagerServer

func RegisterPluginManagerServer(s grpc.ServiceRegistrar, 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 {
	Connections []string `protobuf:"bytes,1,rep,name=connections,proto3" json:"connections,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRequest) Descriptor deprecated

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

Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.

func (*GetRequest) GetConnections

func (x *GetRequest) GetConnections() []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 {
	ReattachMap map[string]*ReattachConfig `` /* 182-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GetResponse) Descriptor deprecated

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

Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.

func (*GetResponse) GetReattachMap

func (x *GetResponse) GetReattachMap() map[string]*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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type PluginManagerServer

type PluginManagerServer interface {
	Get(context.Context, *GetRequest) (*GetResponse, error)
	Shutdown(context.Context, *ShutdownRequest) (*ShutdownResponse, error)
	// contains filtered or unexported methods
}

PluginManagerServer is the server API for PluginManager service. All implementations must embed UnimplementedPluginManagerServer for forward compatibility

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 must be embedded to have forward compatible implementations.

func (UnimplementedPluginManagerServer) Get

func (UnimplementedPluginManagerServer) Shutdown

type UnsafePluginManagerServer

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

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

Jump to

Keyboard shortcuts

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