Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Cardano_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Cardano", HandlerType: (*CardanoServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "run", Handler: _Cardano_Run_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "service_spec/cardano.proto", }
Cardano_ServiceDesc is the grpc.ServiceDesc for Cardano service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_service_spec_cardano_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCardanoServer ¶
func RegisterCardanoServer(s grpc.ServiceRegistrar, srv CardanoServer)
Types ¶
type CardanoClient ¶
type CardanoClient interface {
Run(ctx context.Context, in *CommandInputs, opts ...grpc.CallOption) (*ResultOutput, error)
}
CardanoClient is the client API for Cardano 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 NewCardanoClient ¶
func NewCardanoClient(cc grpc.ClientConnInterface) CardanoClient
type CardanoServer ¶
type CardanoServer interface { Run(context.Context, *CommandInputs) (*ResultOutput, error) // contains filtered or unexported methods }
CardanoServer is the server API for Cardano service. All implementations must embed UnimplementedCardanoServer for forward compatibility
type CommandInputs ¶
type CommandInputs struct { Command string `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"` // contains filtered or unexported fields }
func (*CommandInputs) Descriptor
deprecated
func (*CommandInputs) Descriptor() ([]byte, []int)
Deprecated: Use CommandInputs.ProtoReflect.Descriptor instead.
func (*CommandInputs) GetCommand ¶
func (x *CommandInputs) GetCommand() string
func (*CommandInputs) ProtoMessage ¶
func (*CommandInputs) ProtoMessage()
func (*CommandInputs) ProtoReflect ¶
func (x *CommandInputs) ProtoReflect() protoreflect.Message
func (*CommandInputs) Reset ¶
func (x *CommandInputs) Reset()
func (*CommandInputs) String ¶
func (x *CommandInputs) String() string
type ResultOutput ¶
type ResultOutput struct { Response string `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` // contains filtered or unexported fields }
func RunCommand ¶
func RunCommand(command string) (*ResultOutput, error)
func (*ResultOutput) Descriptor
deprecated
func (*ResultOutput) Descriptor() ([]byte, []int)
Deprecated: Use ResultOutput.ProtoReflect.Descriptor instead.
func (*ResultOutput) GetResponse ¶
func (x *ResultOutput) GetResponse() string
func (*ResultOutput) ProtoMessage ¶
func (*ResultOutput) ProtoMessage()
func (*ResultOutput) ProtoReflect ¶
func (x *ResultOutput) ProtoReflect() protoreflect.Message
func (*ResultOutput) Reset ¶
func (x *ResultOutput) Reset()
func (*ResultOutput) String ¶
func (x *ResultOutput) String() string
type UnimplementedCardanoServer ¶
type UnimplementedCardanoServer struct { }
UnimplementedCardanoServer must be embedded to have forward compatible implementations.
func (UnimplementedCardanoServer) Run ¶
func (UnimplementedCardanoServer) Run(context.Context, *CommandInputs) (*ResultOutput, error)
type UnsafeCardanoServer ¶
type UnsafeCardanoServer interface {
// contains filtered or unexported methods
}
UnsafeCardanoServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CardanoServer will result in compilation errors.