Documentation ¶
Index ¶
- Variables
- func RegisterAddressBookOperationServer(s *grpc.Server, srv AddressBookOperationServer)
- type AddressBook
- func (*AddressBook) Descriptor() ([]byte, []int)
- func (m *AddressBook) GetPeople() []*Person
- func (m *AddressBook) Marshal() (dAtA []byte, err error)
- func (m *AddressBook) MarshalTo(dAtA []byte) (int, error)
- func (*AddressBook) ProtoMessage()
- func (m *AddressBook) Reset()
- func (m *AddressBook) Size() (n int)
- func (m *AddressBook) String() string
- func (m *AddressBook) Unmarshal(dAtA []byte) error
- func (m *AddressBook) XXX_DiscardUnknown()
- func (m *AddressBook) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *AddressBook) XXX_Merge(src proto.Message)
- func (m *AddressBook) XXX_Size() int
- func (m *AddressBook) XXX_Unmarshal(b []byte) error
- type AddressBookOperationClient
- type AddressBookOperationServer
- type Person
- func (*Person) Descriptor() ([]byte, []int)
- func (m *Person) GetEmail() string
- func (m *Person) GetId() int32
- func (m *Person) GetName() string
- func (m *Person) GetPhones() []*Person_PhoneNumber
- func (m *Person) Marshal() (dAtA []byte, err error)
- func (m *Person) MarshalTo(dAtA []byte) (int, error)
- func (*Person) ProtoMessage()
- func (m *Person) Reset()
- func (m *Person) Size() (n int)
- func (m *Person) String() string
- func (m *Person) Unmarshal(dAtA []byte) error
- func (m *Person) XXX_DiscardUnknown()
- func (m *Person) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Person) XXX_Merge(src proto.Message)
- func (m *Person) XXX_Size() int
- func (m *Person) XXX_Unmarshal(b []byte) error
- type Person_PhoneNumber
- func (*Person_PhoneNumber) Descriptor() ([]byte, []int)
- func (m *Person_PhoneNumber) GetNumber() string
- func (m *Person_PhoneNumber) GetType() Person_PhoneType
- func (m *Person_PhoneNumber) Marshal() (dAtA []byte, err error)
- func (m *Person_PhoneNumber) MarshalTo(dAtA []byte) (int, error)
- func (*Person_PhoneNumber) ProtoMessage()
- func (m *Person_PhoneNumber) Reset()
- func (m *Person_PhoneNumber) Size() (n int)
- func (m *Person_PhoneNumber) String() string
- func (m *Person_PhoneNumber) Unmarshal(dAtA []byte) error
- func (m *Person_PhoneNumber) XXX_DiscardUnknown()
- func (m *Person_PhoneNumber) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Person_PhoneNumber) XXX_Merge(src proto.Message)
- func (m *Person_PhoneNumber) XXX_Size() int
- func (m *Person_PhoneNumber) XXX_Unmarshal(b []byte) error
- type Person_PhoneType
- type SearchRequest
- func (*SearchRequest) Descriptor() ([]byte, []int)
- func (m *SearchRequest) GetPageNumber() int32
- func (m *SearchRequest) GetQuery() string
- func (m *SearchRequest) GetResultPerPage() int32
- func (m *SearchRequest) Marshal() (dAtA []byte, err error)
- func (m *SearchRequest) MarshalTo(dAtA []byte) (int, error)
- func (*SearchRequest) ProtoMessage()
- func (m *SearchRequest) Reset()
- func (m *SearchRequest) Size() (n int)
- func (m *SearchRequest) String() string
- func (m *SearchRequest) Unmarshal(dAtA []byte) error
- func (m *SearchRequest) XXX_DiscardUnknown()
- func (m *SearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SearchRequest) XXX_Merge(src proto.Message)
- func (m *SearchRequest) XXX_Size() int
- func (m *SearchRequest) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthLollipopgo = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowLollipopgo = fmt.Errorf("proto: integer overflow") )
View Source
var Person_PhoneType_name = map[int32]string{
0: "MOBILE",
1: "HOME",
2: "WORK",
}
View Source
var Person_PhoneType_value = map[string]int32{
"MOBILE": 0,
"HOME": 1,
"WORK": 2,
}
Functions ¶
func RegisterAddressBookOperationServer ¶
func RegisterAddressBookOperationServer(s *grpc.Server, srv AddressBookOperationServer)
Types ¶
type AddressBook ¶
type AddressBook struct { People []*Person `protobuf:"bytes,1,rep,name=people" json:"people,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AddressBook) Descriptor ¶
func (*AddressBook) Descriptor() ([]byte, []int)
func (*AddressBook) GetPeople ¶
func (m *AddressBook) GetPeople() []*Person
func (*AddressBook) Marshal ¶
func (m *AddressBook) Marshal() (dAtA []byte, err error)
func (*AddressBook) ProtoMessage ¶
func (*AddressBook) ProtoMessage()
func (*AddressBook) Reset ¶
func (m *AddressBook) Reset()
func (*AddressBook) Size ¶
func (m *AddressBook) Size() (n int)
func (*AddressBook) String ¶
func (m *AddressBook) String() string
func (*AddressBook) Unmarshal ¶
func (m *AddressBook) Unmarshal(dAtA []byte) error
func (*AddressBook) XXX_DiscardUnknown ¶
func (m *AddressBook) XXX_DiscardUnknown()
func (*AddressBook) XXX_Marshal ¶
func (m *AddressBook) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AddressBook) XXX_Merge ¶
func (dst *AddressBook) XXX_Merge(src proto.Message)
func (*AddressBook) XXX_Size ¶
func (m *AddressBook) XXX_Size() int
func (*AddressBook) XXX_Unmarshal ¶
func (m *AddressBook) XXX_Unmarshal(b []byte) error
type AddressBookOperationClient ¶
type AddressBookOperationClient interface {
GetAddressBook(ctx context.Context, in *AddressBook, opts ...grpc.CallOption) (*AddressBook, error)
}
func NewAddressBookOperationClient ¶
func NewAddressBookOperationClient(cc *grpc.ClientConn) AddressBookOperationClient
type AddressBookOperationServer ¶
type AddressBookOperationServer interface {
GetAddressBook(context.Context, *AddressBook) (*AddressBook, error)
}
type Person ¶
type Person struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Id int32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` Phones []*Person_PhoneNumber `protobuf:"bytes,4,rep,name=phones" json:"phones,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Person) Descriptor ¶
func (*Person) GetPhones ¶
func (m *Person) GetPhones() []*Person_PhoneNumber
func (*Person) ProtoMessage ¶
func (*Person) ProtoMessage()
func (*Person) XXX_DiscardUnknown ¶
func (m *Person) XXX_DiscardUnknown()
func (*Person) XXX_Marshal ¶
func (*Person) XXX_Unmarshal ¶
type Person_PhoneNumber ¶
type Person_PhoneNumber struct { Number string `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"` Type Person_PhoneType `protobuf:"varint,2,opt,name=type,proto3,enum=golang.ltd.Person_PhoneType" json:"type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Person_PhoneNumber) Descriptor ¶
func (*Person_PhoneNumber) Descriptor() ([]byte, []int)
func (*Person_PhoneNumber) GetNumber ¶
func (m *Person_PhoneNumber) GetNumber() string
func (*Person_PhoneNumber) GetType ¶
func (m *Person_PhoneNumber) GetType() Person_PhoneType
func (*Person_PhoneNumber) Marshal ¶
func (m *Person_PhoneNumber) Marshal() (dAtA []byte, err error)
func (*Person_PhoneNumber) MarshalTo ¶
func (m *Person_PhoneNumber) MarshalTo(dAtA []byte) (int, error)
func (*Person_PhoneNumber) ProtoMessage ¶
func (*Person_PhoneNumber) ProtoMessage()
func (*Person_PhoneNumber) Reset ¶
func (m *Person_PhoneNumber) Reset()
func (*Person_PhoneNumber) Size ¶
func (m *Person_PhoneNumber) Size() (n int)
func (*Person_PhoneNumber) String ¶
func (m *Person_PhoneNumber) String() string
func (*Person_PhoneNumber) Unmarshal ¶
func (m *Person_PhoneNumber) Unmarshal(dAtA []byte) error
func (*Person_PhoneNumber) XXX_DiscardUnknown ¶
func (m *Person_PhoneNumber) XXX_DiscardUnknown()
func (*Person_PhoneNumber) XXX_Marshal ¶
func (m *Person_PhoneNumber) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Person_PhoneNumber) XXX_Merge ¶
func (dst *Person_PhoneNumber) XXX_Merge(src proto.Message)
func (*Person_PhoneNumber) XXX_Size ¶
func (m *Person_PhoneNumber) XXX_Size() int
func (*Person_PhoneNumber) XXX_Unmarshal ¶
func (m *Person_PhoneNumber) XXX_Unmarshal(b []byte) error
type Person_PhoneType ¶
type Person_PhoneType int32
const ( Person_MOBILE Person_PhoneType = 0 Person_HOME Person_PhoneType = 1 Person_WORK Person_PhoneType = 2 )
func (Person_PhoneType) EnumDescriptor ¶
func (Person_PhoneType) EnumDescriptor() ([]byte, []int)
func (Person_PhoneType) String ¶
func (x Person_PhoneType) String() string
type SearchRequest ¶
type SearchRequest struct { Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` PageNumber int32 `protobuf:"varint,2,opt,name=page_number,json=pageNumber,proto3" json:"page_number,omitempty"` ResultPerPage int32 `protobuf:"varint,3,opt,name=result_per_page,json=resultPerPage,proto3" json:"result_per_page,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_sizecache int32 `json:"-"` }
刷新操作
func (*SearchRequest) Descriptor ¶
func (*SearchRequest) Descriptor() ([]byte, []int)
func (*SearchRequest) GetPageNumber ¶
func (m *SearchRequest) GetPageNumber() int32
func (*SearchRequest) GetQuery ¶
func (m *SearchRequest) GetQuery() string
func (*SearchRequest) GetResultPerPage ¶
func (m *SearchRequest) GetResultPerPage() int32
func (*SearchRequest) Marshal ¶
func (m *SearchRequest) Marshal() (dAtA []byte, err error)
func (*SearchRequest) ProtoMessage ¶
func (*SearchRequest) ProtoMessage()
func (*SearchRequest) Reset ¶
func (m *SearchRequest) Reset()
func (*SearchRequest) Size ¶
func (m *SearchRequest) Size() (n int)
func (*SearchRequest) String ¶
func (m *SearchRequest) String() string
func (*SearchRequest) Unmarshal ¶
func (m *SearchRequest) Unmarshal(dAtA []byte) error
func (*SearchRequest) XXX_DiscardUnknown ¶
func (m *SearchRequest) XXX_DiscardUnknown()
func (*SearchRequest) XXX_Marshal ¶
func (m *SearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SearchRequest) XXX_Merge ¶
func (dst *SearchRequest) XXX_Merge(src proto.Message)
func (*SearchRequest) XXX_Size ¶
func (m *SearchRequest) XXX_Size() int
func (*SearchRequest) XXX_Unmarshal ¶
func (m *SearchRequest) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.