pb

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Echo_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "sillystack.Echo",
	HandlerType: (*EchoServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Echo",
			Handler:    _Echo_Echo_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "testing.proto",
}

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

View Source
var File_jsonrpc_proto protoreflect.FileDescriptor
View Source
var File_testing_proto protoreflect.FileDescriptor
View Source
var JSONRPC_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "sillystack.JSONRPC",
	HandlerType: (*JSONRPCServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Proxy",
			Handler:       _JSONRPC_Proxy_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "jsonrpc.proto",
}

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

Functions

func RegisterEchoServer added in v0.1.6

func RegisterEchoServer(s grpc.ServiceRegistrar, srv EchoServer)

func RegisterJSONRPCServer

func RegisterJSONRPCServer(s grpc.ServiceRegistrar, srv JSONRPCServer)

Types

type DummyConfig added in v0.1.8

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

func (*DummyConfig) Descriptor deprecated added in v0.1.8

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

Deprecated: Use DummyConfig.ProtoReflect.Descriptor instead.

func (*DummyConfig) GetValue added in v0.1.8

func (x *DummyConfig) GetValue() string

func (*DummyConfig) ProtoMessage added in v0.1.8

func (*DummyConfig) ProtoMessage()

func (*DummyConfig) ProtoReflect added in v0.1.8

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

func (*DummyConfig) Reset added in v0.1.8

func (x *DummyConfig) Reset()

func (*DummyConfig) String added in v0.1.8

func (x *DummyConfig) String() string

type EchoClient added in v0.1.6

type EchoClient interface {
	Echo(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
}

EchoClient is the client API for Echo 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 NewEchoClient added in v0.1.6

func NewEchoClient(cc grpc.ClientConnInterface) EchoClient

type EchoServer added in v0.1.6

type EchoServer interface {
	Echo(context.Context, *empty.Empty) (*empty.Empty, error)
	// contains filtered or unexported methods
}

EchoServer is the server API for Echo service. All implementations must embed UnimplementedEchoServer for forward compatibility

type JSONRPCClient

type JSONRPCClient interface {
	// Proxy tunnels JSON-RPC traffic over gRPC.
	Proxy(ctx context.Context, opts ...grpc.CallOption) (JSONRPC_ProxyClient, error)
}

JSONRPCClient is the client API for JSONRPC 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 NewJSONRPCClient

func NewJSONRPCClient(cc grpc.ClientConnInterface) JSONRPCClient

type JSONRPCMessage

type JSONRPCMessage struct {
	Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
	Params []byte `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
	Id     []byte `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
	Result []byte `protobuf:"bytes,4,opt,name=result,proto3" json:"result,omitempty"`
	Error  []byte `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

JSONRPCMessage is a JSON-RPC message (combined request/response).

func (*JSONRPCMessage) Descriptor deprecated

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

Deprecated: Use JSONRPCMessage.ProtoReflect.Descriptor instead.

func (*JSONRPCMessage) GetError

func (x *JSONRPCMessage) GetError() []byte

func (*JSONRPCMessage) GetId

func (x *JSONRPCMessage) GetId() []byte

func (*JSONRPCMessage) GetMethod

func (x *JSONRPCMessage) GetMethod() string

func (*JSONRPCMessage) GetParams

func (x *JSONRPCMessage) GetParams() []byte

func (*JSONRPCMessage) GetResult

func (x *JSONRPCMessage) GetResult() []byte

func (*JSONRPCMessage) ProtoMessage

func (*JSONRPCMessage) ProtoMessage()

func (*JSONRPCMessage) ProtoReflect

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

func (*JSONRPCMessage) Reset

func (x *JSONRPCMessage) Reset()

func (*JSONRPCMessage) String

func (x *JSONRPCMessage) String() string

type JSONRPCServer

type JSONRPCServer interface {
	// Proxy tunnels JSON-RPC traffic over gRPC.
	Proxy(JSONRPC_ProxyServer) error
	// contains filtered or unexported methods
}

JSONRPCServer is the server API for JSONRPC service. All implementations must embed UnimplementedJSONRPCServer for forward compatibility

type JSONRPC_ProxyClient

type JSONRPC_ProxyClient interface {
	Send(*JSONRPCMessage) error
	Recv() (*JSONRPCMessage, error)
	grpc.ClientStream
}

type JSONRPC_ProxyServer

type JSONRPC_ProxyServer interface {
	Send(*JSONRPCMessage) error
	Recv() (*JSONRPCMessage, error)
	grpc.ServerStream
}

type UnimplementedEchoServer added in v0.1.6

type UnimplementedEchoServer struct {
}

UnimplementedEchoServer must be embedded to have forward compatible implementations.

func (UnimplementedEchoServer) Echo added in v0.1.6

type UnimplementedJSONRPCServer

type UnimplementedJSONRPCServer struct {
}

UnimplementedJSONRPCServer must be embedded to have forward compatible implementations.

func (UnimplementedJSONRPCServer) Proxy

type UnsafeEchoServer added in v0.1.6

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

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

type UnsafeJSONRPCServer

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

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

Jump to

Keyboard shortcuts

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