golang_ltd

package
v0.0.0-...-2824937 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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

func (m *AddressBook) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*Person) GetEmail

func (m *Person) GetEmail() string

func (*Person) GetId

func (m *Person) GetId() int32

func (*Person) GetName

func (m *Person) GetName() string

func (*Person) GetPhones

func (m *Person) GetPhones() []*Person_PhoneNumber

func (*Person) Marshal

func (m *Person) Marshal() (dAtA []byte, err error)

func (*Person) MarshalTo

func (m *Person) MarshalTo(dAtA []byte) (int, error)

func (*Person) ProtoMessage

func (*Person) ProtoMessage()

func (*Person) Reset

func (m *Person) Reset()

func (*Person) Size

func (m *Person) Size() (n int)

func (*Person) String

func (m *Person) String() string

func (*Person) Unmarshal

func (m *Person) Unmarshal(dAtA []byte) error

func (*Person) XXX_DiscardUnknown

func (m *Person) XXX_DiscardUnknown()

func (*Person) XXX_Marshal

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

func (*Person) XXX_Merge

func (dst *Person) XXX_Merge(src proto.Message)

func (*Person) XXX_Size

func (m *Person) XXX_Size() int

func (*Person) XXX_Unmarshal

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

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

func (m *SearchRequest) MarshalTo(dAtA []byte) (int, 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

Jump to

Keyboard shortcuts

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