Documentation ¶
Index ¶
- Variables
- func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)
- type Info
- func (*Info) Descriptor() ([]byte, []int)
- func (m *Info) GetAvatar() string
- func (m *Info) GetBio() string
- func (m *Info) GetLocation() string
- func (m *Info) Marshal() (dAtA []byte, err error)
- func (m *Info) MarshalTo(dAtA []byte) (int, error)
- func (m *Info) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Info) ProtoMessage()
- func (m *Info) Reset()
- func (m *Info) Size() (n int)
- func (m *Info) String() string
- func (m *Info) Unmarshal(dAtA []byte) error
- func (m *Info) XXX_DiscardUnknown()
- func (m *Info) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Info) XXX_Merge(src proto.Message)
- func (m *Info) XXX_Size() int
- func (m *Info) XXX_Unmarshal(b []byte) error
- type UnimplementedUserServiceServer
- type UserRequest
- func (*UserRequest) Descriptor() ([]byte, []int)
- func (m *UserRequest) GetUsername() string
- func (m *UserRequest) Marshal() (dAtA []byte, err error)
- func (m *UserRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *UserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UserRequest) ProtoMessage()
- func (m *UserRequest) Reset()
- func (m *UserRequest) Size() (n int)
- func (m *UserRequest) String() string
- func (m *UserRequest) Unmarshal(dAtA []byte) error
- func (m *UserRequest) XXX_DiscardUnknown()
- func (m *UserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserRequest) XXX_Merge(src proto.Message)
- func (m *UserRequest) XXX_Size() int
- func (m *UserRequest) XXX_Unmarshal(b []byte) error
- type UserResponse
- func (*UserResponse) Descriptor() ([]byte, []int)
- func (m *UserResponse) GetId() int64
- func (m *UserResponse) GetInfo() *Info
- func (m *UserResponse) GetName() string
- func (m *UserResponse) Marshal() (dAtA []byte, err error)
- func (m *UserResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *UserResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UserResponse) ProtoMessage()
- func (m *UserResponse) Reset()
- func (m *UserResponse) Size() (n int)
- func (m *UserResponse) String() string
- func (m *UserResponse) Unmarshal(dAtA []byte) error
- func (m *UserResponse) XXX_DiscardUnknown()
- func (m *UserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserResponse) XXX_Merge(src proto.Message)
- func (m *UserResponse) XXX_Size() int
- func (m *UserResponse) XXX_Unmarshal(b []byte) error
- type UserServiceClient
- type UserServiceServer
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)
Types ¶
type Info ¶
type Info struct { Bio string `protobuf:"bytes,1,opt,name=bio,proto3" json:"bio,omitempty"` Location string `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"` Avatar string `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Info) Descriptor ¶
func (*Info) GetLocation ¶
func (*Info) ProtoMessage ¶
func (*Info) ProtoMessage()
func (*Info) XXX_DiscardUnknown ¶
func (m *Info) XXX_DiscardUnknown()
func (*Info) XXX_Unmarshal ¶
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedUserServiceServer) GetUser ¶
func (*UnimplementedUserServiceServer) GetUser(ctx context.Context, req *UserRequest) (*UserResponse, error)
type UserRequest ¶
type UserRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserRequest) Descriptor ¶
func (*UserRequest) Descriptor() ([]byte, []int)
func (*UserRequest) GetUsername ¶
func (m *UserRequest) GetUsername() string
func (*UserRequest) Marshal ¶
func (m *UserRequest) Marshal() (dAtA []byte, err error)
func (*UserRequest) MarshalToSizedBuffer ¶
func (m *UserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UserRequest) ProtoMessage ¶
func (*UserRequest) ProtoMessage()
func (*UserRequest) Reset ¶
func (m *UserRequest) Reset()
func (*UserRequest) Size ¶
func (m *UserRequest) Size() (n int)
func (*UserRequest) String ¶
func (m *UserRequest) String() string
func (*UserRequest) Unmarshal ¶
func (m *UserRequest) Unmarshal(dAtA []byte) error
func (*UserRequest) XXX_DiscardUnknown ¶
func (m *UserRequest) XXX_DiscardUnknown()
func (*UserRequest) XXX_Marshal ¶
func (m *UserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserRequest) XXX_Merge ¶
func (m *UserRequest) XXX_Merge(src proto.Message)
func (*UserRequest) XXX_Size ¶
func (m *UserRequest) XXX_Size() int
func (*UserRequest) XXX_Unmarshal ¶
func (m *UserRequest) XXX_Unmarshal(b []byte) error
type UserResponse ¶
type UserResponse 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"` Info *Info `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserResponse) Descriptor ¶
func (*UserResponse) Descriptor() ([]byte, []int)
func (*UserResponse) GetId ¶
func (m *UserResponse) GetId() int64
func (*UserResponse) GetInfo ¶
func (m *UserResponse) GetInfo() *Info
func (*UserResponse) GetName ¶
func (m *UserResponse) GetName() string
func (*UserResponse) Marshal ¶
func (m *UserResponse) Marshal() (dAtA []byte, err error)
func (*UserResponse) MarshalToSizedBuffer ¶
func (m *UserResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UserResponse) ProtoMessage ¶
func (*UserResponse) ProtoMessage()
func (*UserResponse) Reset ¶
func (m *UserResponse) Reset()
func (*UserResponse) Size ¶
func (m *UserResponse) Size() (n int)
func (*UserResponse) String ¶
func (m *UserResponse) String() string
func (*UserResponse) Unmarshal ¶
func (m *UserResponse) Unmarshal(dAtA []byte) error
func (*UserResponse) XXX_DiscardUnknown ¶
func (m *UserResponse) XXX_DiscardUnknown()
func (*UserResponse) XXX_Marshal ¶
func (m *UserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserResponse) XXX_Merge ¶
func (m *UserResponse) XXX_Merge(src proto.Message)
func (*UserResponse) XXX_Size ¶
func (m *UserResponse) XXX_Size() int
func (*UserResponse) XXX_Unmarshal ¶
func (m *UserResponse) XXX_Unmarshal(b []byte) error
type UserServiceClient ¶
type UserServiceClient interface {
GetUser(ctx context.Context, in *UserRequest, opts ...grpc.CallOption) (*UserResponse, error)
}
UserServiceClient is the client API for UserService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewUserServiceClient ¶
func NewUserServiceClient(cc *grpc.ClientConn) UserServiceClient
type UserServiceServer ¶
type UserServiceServer interface {
GetUser(context.Context, *UserRequest) (*UserResponse, error)
}
UserServiceServer is the server API for UserService service.
Click to show internal directories.
Click to hide internal directories.