Documentation ¶
Index ¶
- func RegisterUsersServer(s *grpc.Server, srv UsersServer)
- type Created
- func (*Created) Descriptor() ([]byte, []int)
- func (m *Created) GetUid() string
- func (*Created) ProtoMessage()
- func (m *Created) Reset()
- func (m *Created) String() string
- func (m *Created) XXX_DiscardUnknown()
- func (m *Created) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Created) XXX_Merge(src proto.Message)
- func (m *Created) XXX_Size() int
- func (m *Created) XXX_Unmarshal(b []byte) error
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) String() string
- func (m *Empty) XXX_DiscardUnknown()
- func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Empty) XXX_Merge(src proto.Message)
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type UnimplementedUsersServer
- type User
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) GetFirstName() string
- func (m *User) GetFriends() []*User
- func (m *User) GetLastName() string
- func (m *User) GetPhoto() int32
- func (*User) ProtoMessage()
- func (m *User) Reset()
- func (m *User) String() string
- func (m *User) XXX_DiscardUnknown()
- func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *User) XXX_Merge(src proto.Message)
- func (m *User) XXX_Size() int
- func (m *User) XXX_Unmarshal(b []byte) error
- type UserList
- func (*UserList) Descriptor() ([]byte, []int)
- func (m *UserList) GetUsers() []*User
- func (*UserList) ProtoMessage()
- func (m *UserList) Reset()
- func (m *UserList) String() string
- func (m *UserList) XXX_DiscardUnknown()
- func (m *UserList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserList) XXX_Merge(src proto.Message)
- func (m *UserList) XXX_Size() int
- func (m *UserList) XXX_Unmarshal(b []byte) error
- type UsersClient
- type UsersServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterUsersServer ¶
func RegisterUsersServer(s *grpc.Server, srv UsersServer)
Types ¶
type Created ¶
type Created struct { Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Created) Descriptor ¶
func (*Created) ProtoMessage ¶
func (*Created) ProtoMessage()
func (*Created) XXX_DiscardUnknown ¶
func (m *Created) XXX_DiscardUnknown()
func (*Created) XXX_Marshal ¶
func (*Created) XXX_Unmarshal ¶
type Empty ¶
type Empty struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
common practice to represent empty messages
func (*Empty) Descriptor ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) XXX_DiscardUnknown ¶
func (m *Empty) XXX_DiscardUnknown()
func (*Empty) XXX_Marshal ¶
func (*Empty) XXX_Unmarshal ¶
type UnimplementedUsersServer ¶
type UnimplementedUsersServer struct { }
UnimplementedUsersServer can be embedded to have forward compatible implementations.
type User ¶
type User struct { FirstName string `protobuf:"bytes,1,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` LastName string `protobuf:"bytes,2,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` Photo int32 `protobuf:"varint,3,opt,name=photo,proto3" json:"photo,omitempty"` Friends []*User `protobuf:"bytes,4,rep,name=friends,proto3" json:"friends,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*User) Descriptor ¶
func (*User) GetFirstName ¶
func (*User) GetFriends ¶
func (*User) GetLastName ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) XXX_DiscardUnknown ¶
func (m *User) XXX_DiscardUnknown()
func (*User) XXX_Unmarshal ¶
type UserList ¶
type UserList struct { Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserList) Descriptor ¶
func (*UserList) ProtoMessage ¶
func (*UserList) ProtoMessage()
func (*UserList) XXX_DiscardUnknown ¶
func (m *UserList) XXX_DiscardUnknown()
func (*UserList) XXX_Marshal ¶
func (*UserList) XXX_Unmarshal ¶
type UsersClient ¶
type UsersClient interface { // service methods SignUp(ctx context.Context, in *User, opts ...grpc.CallOption) (*Created, error) List(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*UserList, error) }
UsersClient is the client API for Users service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewUsersClient ¶
func NewUsersClient(cc grpc.ClientConnInterface) UsersClient
Click to show internal directories.
Click to hide internal directories.