Documentation ¶
Index ¶
Constants ¶
const ( Oracle_StartOracle_FullMethodName = "/loop.Oracle/StartOracle" Oracle_CloseOracle_FullMethodName = "/loop.Oracle/CloseOracle" )
Variables ¶
var File_oracle_proto protoreflect.FileDescriptor
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.