dna_server

package
v0.0.0-...-792a36f Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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)

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) Descriptor() ([]byte, []int)

Deprecated: Use DNA.ProtoReflect.Descriptor instead.

func (*DNA) GetA

func (x *DNA) GetA() string

func (*DNA) GetD

func (x *DNA) GetD() string

func (*DNA) GetId

func (x *DNA) GetId() string

func (*DNA) GetO

func (x *DNA) GetO() string

func (*DNA) GetT

func (x *DNA) GetT() string

func (*DNA) ProtoMessage

func (*DNA) ProtoMessage()

func (*DNA) ProtoReflect

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

func (*DNA) Reset

func (x *DNA) Reset()

func (*DNA) String

func (x *DNA) String() string

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.

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) ValidateDNA

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

Jump to

Keyboard shortcuts

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