go_micro_srv_mutant

package
v0.0.0-...-ef3eba0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2018 License: GPL-3.0 Imports: 6 Imported by: 0

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

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 DnaHandler interface {
	IsMutant(context.Context, *Request, *Response) error
}

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

func (*Message) GetDna

func (m *Message) GetDna() []string

func (*Message) GetId

func (m *Message) GetId() string

func (*Message) GetIsMutant

func (m *Message) GetIsMutant() bool

func (*Message) GetTimestamp

func (m *Message) GetTimestamp() int64

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) String

func (m *Message) String() string

func (*Message) XXX_DiscardUnknown

func (m *Message) XXX_DiscardUnknown()

func (*Message) XXX_Marshal

func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Message) XXX_Merge

func (m *Message) XXX_Merge(src proto.Message)

func (*Message) XXX_Size

func (m *Message) XXX_Size() int

func (*Message) XXX_Unmarshal

func (m *Message) XXX_Unmarshal(b []byte) error

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

func (*Request) GetDna

func (m *Request) GetDna() []string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

func (*Request) XXX_DiscardUnknown

func (m *Request) XXX_DiscardUnknown()

func (*Request) XXX_Marshal

func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Request) XXX_Merge

func (m *Request) XXX_Merge(src proto.Message)

func (*Request) XXX_Size

func (m *Request) XXX_Size() int

func (*Request) XXX_Unmarshal

func (m *Request) XXX_Unmarshal(b []byte) error

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

func (*Response) GetIsMutant

func (m *Response) GetIsMutant() bool

func (*Response) GetMsg

func (m *Response) GetMsg() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

func (*Response) XXX_DiscardUnknown

func (m *Response) XXX_DiscardUnknown()

func (*Response) XXX_Marshal

func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Response) XXX_Merge

func (m *Response) XXX_Merge(src proto.Message)

func (*Response) XXX_Size

func (m *Response) XXX_Size() int

func (*Response) XXX_Unmarshal

func (m *Response) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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