Documentation ¶
Index ¶
- Variables
- func RegisterPhoneService(service grpc.ServiceRegistrar, srv PhonebookServers)
- type Friends
- func (*Friends) Descriptor() ([]byte, []int)deprecated
- func (x *Friends) GetEmail() string
- func (x *Friends) GetId() int64
- func (x *Friends) GetName() string
- func (x *Friends) GetPhone() string
- func (*Friends) ProtoMessage()
- func (x *Friends) ProtoReflect() protoreflect.Message
- func (x *Friends) Reset()
- func (x *Friends) String() string
- type Pal
- type PhonebookServers
- type Phonebook_Client
- type UnSafeBehaviour
- type UnimplementedServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_contacts_users_proto protoreflect.FileDescriptor
View Source
var Phone_AddServiceDesc = grpc.ServiceDesc{ ServiceName: "contacts.Phonebook", HandlerType: (*PhonebookServers)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AddContact", Handler: _PhoneBook_Service, }, }, Streams: []grpc.StreamDesc{}, Metadata: "github.com/ali2210/peers-peers/contacts/users.proto", }
Functions ¶
func RegisterPhoneService ¶
func RegisterPhoneService(service grpc.ServiceRegistrar, srv PhonebookServers)
Types ¶
type Friends ¶
type Friends struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Phone string `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*Friends) Descriptor
deprecated
func (*Friends) ProtoMessage ¶
func (*Friends) ProtoMessage()
func (*Friends) ProtoReflect ¶
func (x *Friends) ProtoReflect() protoreflect.Message
type Pal ¶
type Pal struct { Palx []*Friends `protobuf:"bytes,5,rep,name=palx,proto3" json:"palx,omitempty"` // contains filtered or unexported fields }
func (*Pal) Descriptor
deprecated
func (*Pal) ProtoMessage ¶
func (*Pal) ProtoMessage()
func (*Pal) ProtoReflect ¶
func (x *Pal) ProtoReflect() protoreflect.Message
type PhonebookServers ¶
type Phonebook_Client ¶
type Phonebook_Client interface {
AddContact(ctx context.Context, peer *Friends, opts ...grpc.CallOption) *Pal
}
func NewClientServiceInit ¶
func NewClientServiceInit(this_interface grpc.ClientConnInterface) Phonebook_Client
type UnSafeBehaviour ¶
type UnSafeBehaviour interface {
// contains filtered or unexported methods
}
type UnimplementedServer ¶
type UnimplementedServer struct{}
func (UnimplementedServer) AddContact ¶
func (UnimplementedServer) AddContact(ctx context.Context, peers *Friends) *Pal
Click to show internal directories.
Click to hide internal directories.