Documentation ¶
Overview ¶
Package go_micro_srv_mutant is a generated protocol buffer package.
It is generated from these files:
proto/mutant/mutant.proto
It has these top-level messages:
Message Request Response
Index ¶
- func RegisterDnaHandler(s server.Server, hdlr DnaHandler, opts ...server.HandlerOption) error
- type DnaHandler
- type DnaService
- type Message
- func (*Message) Descriptor() ([]byte, []int)
- func (m *Message) GetDna() []string
- func (m *Message) GetId() string
- func (m *Message) GetIsMutant() bool
- func (m *Message) GetTimestamp() int64
- func (*Message) ProtoMessage()
- func (m *Message) Reset()
- func (m *Message) String() string
- func (m *Message) XXX_DiscardUnknown()
- func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Message) XXX_Merge(src proto.Message)
- func (m *Message) XXX_Size() int
- func (m *Message) XXX_Unmarshal(b []byte) error
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetDna() []string
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) String() string
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Request) XXX_Merge(src proto.Message)
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetIsMutant() bool
- func (m *Response) GetMsg() string
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) String() string
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDnaHandler ¶
func RegisterDnaHandler(s server.Server, hdlr DnaHandler, opts ...server.HandlerOption) error
Types ¶
type DnaHandler ¶
type DnaService ¶
type DnaService interface {
IsMutant(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error)
}
func NewDnaService ¶
func NewDnaService(name string, c client.Client) DnaService
type Message ¶
type Message struct { // unique id Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // unix timestamp Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` IsMutant bool `protobuf:"varint,3,opt,name=isMutant,proto3" json:"isMutant,omitempty"` Dna []string `protobuf:"bytes,4,rep,name=dna,proto3" json:"dna,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Message) Descriptor ¶
func (*Message) GetIsMutant ¶
func (*Message) GetTimestamp ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) XXX_DiscardUnknown ¶
func (m *Message) XXX_DiscardUnknown()
func (*Message) XXX_Marshal ¶
func (*Message) XXX_Unmarshal ¶
type Request ¶
type Request struct { Dna []string `protobuf:"bytes,1,rep,name=dna,proto3" json:"dna,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Request) Descriptor ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) XXX_DiscardUnknown ¶
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶
func (*Request) XXX_Unmarshal ¶
type Response ¶
type Response struct { IsMutant bool `protobuf:"varint,1,opt,name=isMutant,proto3" json:"isMutant,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Response) Descriptor ¶
func (*Response) GetIsMutant ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.