Documentation ¶
Index ¶
- func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)
- type Credentials
- func (*Credentials) Descriptor() ([]byte, []int)
- func (m *Credentials) GetEmail() string
- func (m *Credentials) GetPassword() string
- func (*Credentials) ProtoMessage()
- func (m *Credentials) Reset()
- func (m *Credentials) String() string
- func (m *Credentials) XXX_DiscardUnknown()
- func (m *Credentials) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Credentials) XXX_Merge(src proto.Message)
- func (m *Credentials) XXX_Size() int
- func (m *Credentials) XXX_Unmarshal(b []byte) error
- type Filter
- func (*Filter) Descriptor() ([]byte, []int)
- func (m *Filter) GetName() string
- func (*Filter) ProtoMessage()
- func (m *Filter) Reset()
- func (m *Filter) String() string
- func (m *Filter) XXX_DiscardUnknown()
- func (m *Filter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Filter) XXX_Merge(src proto.Message)
- func (m *Filter) XXX_Size() int
- func (m *Filter) XXX_Unmarshal(b []byte) error
- type NewUser
- func (*NewUser) Descriptor() ([]byte, []int)
- func (m *NewUser) GetEmail() string
- func (m *NewUser) GetName() string
- func (m *NewUser) GetPassword() string
- func (*NewUser) ProtoMessage()
- func (m *NewUser) Reset()
- func (m *NewUser) String() string
- func (m *NewUser) XXX_DiscardUnknown()
- func (m *NewUser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NewUser) XXX_Merge(src proto.Message)
- func (m *NewUser) XXX_Size() int
- func (m *NewUser) XXX_Unmarshal(b []byte) error
- type User
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) GetEmail() string
- func (m *User) GetId() string
- func (m *User) GetName() string
- 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 UserServiceClient
- type UserServiceServer
- type Users
- func (*Users) Descriptor() ([]byte, []int)
- func (m *Users) GetData() []*User
- func (*Users) ProtoMessage()
- func (m *Users) Reset()
- func (m *Users) String() string
- func (m *Users) XXX_DiscardUnknown()
- func (m *Users) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Users) XXX_Merge(src proto.Message)
- func (m *Users) XXX_Size() int
- func (m *Users) XXX_Unmarshal(b []byte) error
- type Verification
- func (*Verification) Descriptor() ([]byte, []int)
- func (m *Verification) GetIsValid() bool
- func (*Verification) ProtoMessage()
- func (m *Verification) Reset()
- func (m *Verification) String() string
- func (m *Verification) XXX_DiscardUnknown()
- func (m *Verification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Verification) XXX_Merge(src proto.Message)
- func (m *Verification) XXX_Size() int
- func (m *Verification) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s *grpc.Server, srv UserServiceServer)
Types ¶
type Credentials ¶
type Credentials struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The request message containing the user basic credentials
func (*Credentials) Descriptor ¶
func (*Credentials) Descriptor() ([]byte, []int)
func (*Credentials) GetEmail ¶
func (m *Credentials) GetEmail() string
func (*Credentials) GetPassword ¶
func (m *Credentials) GetPassword() string
func (*Credentials) ProtoMessage ¶
func (*Credentials) ProtoMessage()
func (*Credentials) Reset ¶
func (m *Credentials) Reset()
func (*Credentials) String ¶
func (m *Credentials) String() string
func (*Credentials) XXX_DiscardUnknown ¶
func (m *Credentials) XXX_DiscardUnknown()
func (*Credentials) XXX_Marshal ¶
func (m *Credentials) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Credentials) XXX_Merge ¶
func (m *Credentials) XXX_Merge(src proto.Message)
func (*Credentials) XXX_Size ¶
func (m *Credentials) XXX_Size() int
func (*Credentials) XXX_Unmarshal ¶
func (m *Credentials) XXX_Unmarshal(b []byte) error
type Filter ¶
type Filter struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The response message containing the a users list
func (*Filter) Descriptor ¶
func (*Filter) ProtoMessage ¶
func (*Filter) ProtoMessage()
func (*Filter) XXX_DiscardUnknown ¶
func (m *Filter) XXX_DiscardUnknown()
func (*Filter) XXX_Marshal ¶
func (*Filter) XXX_Unmarshal ¶
type NewUser ¶
type NewUser struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The request message containing the new user data.
func (*NewUser) Descriptor ¶
func (*NewUser) GetPassword ¶
func (*NewUser) ProtoMessage ¶
func (*NewUser) ProtoMessage()
func (*NewUser) XXX_DiscardUnknown ¶
func (m *NewUser) XXX_DiscardUnknown()
func (*NewUser) XXX_Marshal ¶
func (*NewUser) XXX_Unmarshal ¶
type User ¶
type User struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The response message containing the user data
func (*User) Descriptor ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) XXX_DiscardUnknown ¶
func (m *User) XXX_DiscardUnknown()
func (*User) XXX_Unmarshal ¶
type UserServiceClient ¶
type UserServiceClient interface { CreateUser(ctx context.Context, in *NewUser, opts ...grpc.CallOption) (*User, error) ReadUser(ctx context.Context, in *User, opts ...grpc.CallOption) (*User, error) UpdateUser(ctx context.Context, in *User, opts ...grpc.CallOption) (*User, error) DeleteUser(ctx context.Context, in *User, opts ...grpc.CallOption) (*User, error) FilterUsers(ctx context.Context, in *Filter, opts ...grpc.CallOption) (*Users, error) VerifyUser(ctx context.Context, in *Credentials, opts ...grpc.CallOption) (*Verification, 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 { CreateUser(context.Context, *NewUser) (*User, error) ReadUser(context.Context, *User) (*User, error) UpdateUser(context.Context, *User) (*User, error) DeleteUser(context.Context, *User) (*User, error) FilterUsers(context.Context, *Filter) (*Users, error) VerifyUser(context.Context, *Credentials) (*Verification, error) }
UserServiceServer is the server API for UserService service.
type Users ¶
type Users struct { Data []*User `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The response message containing the a users list
func (*Users) Descriptor ¶
func (*Users) ProtoMessage ¶
func (*Users) ProtoMessage()
func (*Users) XXX_DiscardUnknown ¶
func (m *Users) XXX_DiscardUnknown()
func (*Users) XXX_Marshal ¶
func (*Users) XXX_Unmarshal ¶
type Verification ¶
type Verification struct { IsValid bool `protobuf:"varint,1,opt,name=isValid,proto3" json:"isValid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The response message containing the a users list
func (*Verification) Descriptor ¶
func (*Verification) Descriptor() ([]byte, []int)
func (*Verification) GetIsValid ¶
func (m *Verification) GetIsValid() bool
func (*Verification) ProtoMessage ¶
func (*Verification) ProtoMessage()
func (*Verification) Reset ¶
func (m *Verification) Reset()
func (*Verification) String ¶
func (m *Verification) String() string
func (*Verification) XXX_DiscardUnknown ¶
func (m *Verification) XXX_DiscardUnknown()
func (*Verification) XXX_Marshal ¶
func (m *Verification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Verification) XXX_Merge ¶
func (m *Verification) XXX_Merge(src proto.Message)
func (*Verification) XXX_Size ¶
func (m *Verification) XXX_Size() int
func (*Verification) XXX_Unmarshal ¶
func (m *Verification) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.