Documentation ¶
Index ¶
- Variables
- func RegisterDnaGeneratorServiceServer(s grpc.ServiceRegistrar, srv DnaGeneratorServiceServer)
- type DNA
- func (*DNA) Descriptor() ([]byte, []int)deprecated
- func (x *DNA) GetA() string
- func (x *DNA) GetD() string
- func (x *DNA) GetId() string
- func (x *DNA) GetO() string
- func (x *DNA) GetT() string
- func (*DNA) ProtoMessage()
- func (x *DNA) ProtoReflect() protoreflect.Message
- func (x *DNA) Reset()
- func (x *DNA) String() string
- type DNARequest
- func (*DNARequest) Descriptor() ([]byte, []int)deprecated
- func (x *DNARequest) GetId() string
- func (x *DNARequest) GetMutationRate() float32
- func (x *DNARequest) GetTarget() string
- func (*DNARequest) ProtoMessage()
- func (x *DNARequest) ProtoReflect() protoreflect.Message
- func (x *DNARequest) Reset()
- func (x *DNARequest) String() string
- type DNAResponse
- func (*DNAResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DNAResponse) GetDna() *DNA
- func (x *DNAResponse) GetError() bool
- func (x *DNAResponse) GetErrormessage() string
- func (x *DNAResponse) GetId() string
- func (*DNAResponse) ProtoMessage()
- func (x *DNAResponse) ProtoReflect() protoreflect.Message
- func (x *DNAResponse) Reset()
- func (x *DNAResponse) String() string
- type DnaGeneratorServiceClient
- type DnaGeneratorServiceServer
- type UnimplementedDnaGeneratorServiceServer
- type UnsafeDnaGeneratorServiceServer
- type ValidateDNARequest
- func (*ValidateDNARequest) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateDNARequest) GetDnaString() string
- func (x *ValidateDNARequest) GetOriginalTarget() string
- func (*ValidateDNARequest) ProtoMessage()
- func (x *ValidateDNARequest) ProtoReflect() protoreflect.Message
- func (x *ValidateDNARequest) Reset()
- func (x *ValidateDNARequest) String() string
- type ValidateDNAResponse
- func (*ValidateDNAResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateDNAResponse) GetValid() bool
- func (*ValidateDNAResponse) ProtoMessage()
- func (x *ValidateDNAResponse) ProtoReflect() protoreflect.Message
- func (x *ValidateDNAResponse) Reset()
- func (x *ValidateDNAResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var DnaGeneratorService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "DnaGeneratorService", HandlerType: (*DnaGeneratorServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetDNA", Handler: _DnaGeneratorService_GetDNA_Handler, }, { MethodName: "ValidateDNA", Handler: _DnaGeneratorService_ValidateDNA_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "dna.proto", }
DnaGeneratorService_ServiceDesc is the grpc.ServiceDesc for DnaGeneratorService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_dna_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDnaGeneratorServiceServer ¶
func RegisterDnaGeneratorServiceServer(s grpc.ServiceRegistrar, srv DnaGeneratorServiceServer)
Types ¶
type DNA ¶
type DNA struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` A string `protobuf:"bytes,2,opt,name=a,proto3" json:"a,omitempty"` O string `protobuf:"bytes,3,opt,name=o,proto3" json:"o,omitempty"` D string `protobuf:"bytes,4,opt,name=D,proto3" json:"D,omitempty"` T string `protobuf:"bytes,5,opt,name=t,proto3" json:"t,omitempty"` // contains filtered or unexported fields }
func (*DNA) Descriptor
deprecated
func (*DNA) ProtoMessage ¶
func (*DNA) ProtoMessage()
func (*DNA) ProtoReflect ¶
func (x *DNA) ProtoReflect() protoreflect.Message
type DNARequest ¶
type DNARequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` MutationRate float32 `protobuf:"fixed32,2,opt,name=mutationRate,proto3" json:"mutationRate,omitempty"` Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"` // contains filtered or unexported fields }
func (*DNARequest) Descriptor
deprecated
func (*DNARequest) Descriptor() ([]byte, []int)
Deprecated: Use DNARequest.ProtoReflect.Descriptor instead.
func (*DNARequest) GetId ¶
func (x *DNARequest) GetId() string
func (*DNARequest) GetMutationRate ¶
func (x *DNARequest) GetMutationRate() float32
func (*DNARequest) GetTarget ¶
func (x *DNARequest) GetTarget() string
func (*DNARequest) ProtoMessage ¶
func (*DNARequest) ProtoMessage()
func (*DNARequest) ProtoReflect ¶
func (x *DNARequest) ProtoReflect() protoreflect.Message
func (*DNARequest) Reset ¶
func (x *DNARequest) Reset()
func (*DNARequest) String ¶
func (x *DNARequest) String() string
type DNAResponse ¶
type DNAResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Dna *DNA `protobuf:"bytes,2,opt,name=dna,proto3" json:"dna,omitempty"` Error bool `protobuf:"varint,3,opt,name=error,proto3" json:"error,omitempty"` Errormessage string `protobuf:"bytes,4,opt,name=errormessage,proto3" json:"errormessage,omitempty"` // contains filtered or unexported fields }
func (*DNAResponse) Descriptor
deprecated
func (*DNAResponse) Descriptor() ([]byte, []int)
Deprecated: Use DNAResponse.ProtoReflect.Descriptor instead.
func (*DNAResponse) GetDna ¶
func (x *DNAResponse) GetDna() *DNA
func (*DNAResponse) GetError ¶
func (x *DNAResponse) GetError() bool
func (*DNAResponse) GetErrormessage ¶
func (x *DNAResponse) GetErrormessage() string
func (*DNAResponse) GetId ¶
func (x *DNAResponse) GetId() string
func (*DNAResponse) ProtoMessage ¶
func (*DNAResponse) ProtoMessage()
func (*DNAResponse) ProtoReflect ¶
func (x *DNAResponse) ProtoReflect() protoreflect.Message
func (*DNAResponse) Reset ¶
func (x *DNAResponse) Reset()
func (*DNAResponse) String ¶
func (x *DNAResponse) String() string
type DnaGeneratorServiceClient ¶
type DnaGeneratorServiceClient interface { GetDNA(ctx context.Context, in *DNARequest, opts ...grpc.CallOption) (*DNAResponse, error) ValidateDNA(ctx context.Context, in *ValidateDNARequest, opts ...grpc.CallOption) (*ValidateDNAResponse, error) }
DnaGeneratorServiceClient is the client API for DnaGeneratorService 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 NewDnaGeneratorServiceClient ¶
func NewDnaGeneratorServiceClient(cc grpc.ClientConnInterface) DnaGeneratorServiceClient
type DnaGeneratorServiceServer ¶
type DnaGeneratorServiceServer interface { GetDNA(context.Context, *DNARequest) (*DNAResponse, error) ValidateDNA(context.Context, *ValidateDNARequest) (*ValidateDNAResponse, error) // contains filtered or unexported methods }
DnaGeneratorServiceServer is the server API for DnaGeneratorService service. All implementations must embed UnimplementedDnaGeneratorServiceServer for forward compatibility
type UnimplementedDnaGeneratorServiceServer ¶
type UnimplementedDnaGeneratorServiceServer struct { }
UnimplementedDnaGeneratorServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedDnaGeneratorServiceServer) GetDNA ¶
func (UnimplementedDnaGeneratorServiceServer) GetDNA(context.Context, *DNARequest) (*DNAResponse, error)
func (UnimplementedDnaGeneratorServiceServer) ValidateDNA ¶
func (UnimplementedDnaGeneratorServiceServer) ValidateDNA(context.Context, *ValidateDNARequest) (*ValidateDNAResponse, error)
type UnsafeDnaGeneratorServiceServer ¶
type UnsafeDnaGeneratorServiceServer interface {
// contains filtered or unexported methods
}
UnsafeDnaGeneratorServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DnaGeneratorServiceServer will result in compilation errors.
type ValidateDNARequest ¶
type ValidateDNARequest struct { DnaString string `protobuf:"bytes,1,opt,name=dnaString,proto3" json:"dnaString,omitempty"` OriginalTarget string `protobuf:"bytes,2,opt,name=original_target,json=originalTarget,proto3" json:"original_target,omitempty"` // contains filtered or unexported fields }
func (*ValidateDNARequest) Descriptor
deprecated
func (*ValidateDNARequest) Descriptor() ([]byte, []int)
Deprecated: Use ValidateDNARequest.ProtoReflect.Descriptor instead.
func (*ValidateDNARequest) GetDnaString ¶
func (x *ValidateDNARequest) GetDnaString() string
func (*ValidateDNARequest) GetOriginalTarget ¶
func (x *ValidateDNARequest) GetOriginalTarget() string
func (*ValidateDNARequest) ProtoMessage ¶
func (*ValidateDNARequest) ProtoMessage()
func (*ValidateDNARequest) ProtoReflect ¶
func (x *ValidateDNARequest) ProtoReflect() protoreflect.Message
func (*ValidateDNARequest) Reset ¶
func (x *ValidateDNARequest) Reset()
func (*ValidateDNARequest) String ¶
func (x *ValidateDNARequest) String() string
type ValidateDNAResponse ¶
type ValidateDNAResponse struct { Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"` // contains filtered or unexported fields }
func (*ValidateDNAResponse) Descriptor
deprecated
func (*ValidateDNAResponse) Descriptor() ([]byte, []int)
Deprecated: Use ValidateDNAResponse.ProtoReflect.Descriptor instead.
func (*ValidateDNAResponse) GetValid ¶
func (x *ValidateDNAResponse) GetValid() bool
func (*ValidateDNAResponse) ProtoMessage ¶
func (*ValidateDNAResponse) ProtoMessage()
func (*ValidateDNAResponse) ProtoReflect ¶
func (x *ValidateDNAResponse) ProtoReflect() protoreflect.Message
func (*ValidateDNAResponse) Reset ¶
func (x *ValidateDNAResponse) Reset()
func (*ValidateDNAResponse) String ¶
func (x *ValidateDNAResponse) String() string