oracle

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Oracle_StartOracle_FullMethodName = "/loop.Oracle/StartOracle"
	Oracle_CloseOracle_FullMethodName = "/loop.Oracle/CloseOracle"
)

Variables

View Source
var File_oracle_proto protoreflect.FileDescriptor
View Source
var Oracle_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "loop.Oracle",
	HandlerType: (*OracleServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "StartOracle",
			Handler:    _Oracle_StartOracle_Handler,
		},
		{
			MethodName: "CloseOracle",
			Handler:    _Oracle_CloseOracle_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "oracle.proto",
}

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

Functions

func RegisterOracleServer

func RegisterOracleServer(s grpc.ServiceRegistrar, srv OracleServer)

Types

type OracleClient

type OracleClient interface {
	StartOracle(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
	CloseOracle(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

OracleClient is the client API for Oracle 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 NewOracleClient

func NewOracleClient(cc grpc.ClientConnInterface) OracleClient

type OracleServer

type OracleServer interface {
	StartOracle(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
	CloseOracle(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

OracleServer is the server API for Oracle service. All implementations must embed UnimplementedOracleServer for forward compatibility

type UnimplementedOracleServer

type UnimplementedOracleServer struct {
}

UnimplementedOracleServer must be embedded to have forward compatible implementations.

func (UnimplementedOracleServer) CloseOracle

func (UnimplementedOracleServer) StartOracle

type UnsafeOracleServer

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

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

Jump to

Keyboard shortcuts

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