proto_common

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PluginInitializer_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto_common.PluginInitializer",
	HandlerType: (*PluginInitializerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Init",
			Handler:    _PluginInitializer_Init_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "init.proto",
}

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

Functions

func RegisterPluginInitializerServer

func RegisterPluginInitializerServer(s grpc.ServiceRegistrar, srv PluginInitializerServer)

Types

type PluginInitialization

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

* A wrapper message to logically group other messages

func (*PluginInitialization) Descriptor deprecated

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

Deprecated: Use PluginInitialization.ProtoReflect.Descriptor instead.

func (*PluginInitialization) ProtoMessage

func (*PluginInitialization) ProtoMessage()

func (*PluginInitialization) ProtoReflect

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

func (*PluginInitialization) Reset

func (x *PluginInitialization) Reset()

func (*PluginInitialization) String

func (x *PluginInitialization) String() string

type PluginInitialization_Request

type PluginInitialization_Request struct {

	// `geth` node identity
	HostIdentity string `protobuf:"bytes,1,opt,name=hostIdentity,proto3" json:"hostIdentity,omitempty"`
	// Raw configuration to be processed by the plugin
	RawConfiguration []byte `protobuf:"bytes,2,opt,name=rawConfiguration,proto3" json:"rawConfiguration,omitempty"`
	// contains filtered or unexported fields
}

Initialization data for the plugin

func (*PluginInitialization_Request) Descriptor deprecated

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

Deprecated: Use PluginInitialization_Request.ProtoReflect.Descriptor instead.

func (*PluginInitialization_Request) GetHostIdentity

func (x *PluginInitialization_Request) GetHostIdentity() string

func (*PluginInitialization_Request) GetRawConfiguration

func (x *PluginInitialization_Request) GetRawConfiguration() []byte

func (*PluginInitialization_Request) ProtoMessage

func (*PluginInitialization_Request) ProtoMessage()

func (*PluginInitialization_Request) ProtoReflect

func (*PluginInitialization_Request) Reset

func (x *PluginInitialization_Request) Reset()

func (*PluginInitialization_Request) String

type PluginInitialization_Response

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

func (*PluginInitialization_Response) Descriptor deprecated

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

Deprecated: Use PluginInitialization_Response.ProtoReflect.Descriptor instead.

func (*PluginInitialization_Response) ProtoMessage

func (*PluginInitialization_Response) ProtoMessage()

func (*PluginInitialization_Response) ProtoReflect

func (*PluginInitialization_Response) Reset

func (x *PluginInitialization_Response) Reset()

func (*PluginInitialization_Response) String

type PluginInitializerClient

type PluginInitializerClient interface {
	Init(ctx context.Context, in *PluginInitialization_Request, opts ...grpc.CallOption) (*PluginInitialization_Response, error)
}

PluginInitializerClient is the client API for PluginInitializer 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 PluginInitializerServer

type PluginInitializerServer interface {
	Init(context.Context, *PluginInitialization_Request) (*PluginInitialization_Response, error)
	// contains filtered or unexported methods
}

PluginInitializerServer is the server API for PluginInitializer service. All implementations must embed UnimplementedPluginInitializerServer for forward compatibility

type UnimplementedPluginInitializerServer

type UnimplementedPluginInitializerServer struct {
}

UnimplementedPluginInitializerServer must be embedded to have forward compatible implementations.

type UnsafePluginInitializerServer

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

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

Jump to

Keyboard shortcuts

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