Documentation
¶
Index ¶
- func RegisterUserExtraServer(s *grpc.Server, srv UserExtraServer)
- type AddResponse
- func (*AddResponse) Descriptor() ([]byte, []int)
- func (m *AddResponse) GetMessage() string
- func (*AddResponse) ProtoMessage()
- func (m *AddResponse) Reset()
- func (m *AddResponse) String() string
- func (m *AddResponse) XXX_DiscardUnknown()
- func (m *AddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddResponse) XXX_Merge(src proto.Message)
- func (m *AddResponse) XXX_Size() int
- func (m *AddResponse) XXX_Unmarshal(b []byte) error
- type Data
- func (*Data) Descriptor() ([]byte, []int)
- func (m *Data) GetBirthdayUTC() int64
- func (m *Data) GetFirstName() string
- func (m *Data) GetGender() string
- func (m *Data) GetLastName() string
- func (m *Data) GetMessage() string
- func (m *Data) GetUserID() string
- func (*Data) ProtoMessage()
- func (m *Data) Reset()
- func (m *Data) String() string
- func (m *Data) XXX_DiscardUnknown()
- func (m *Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Data) XXX_Merge(src proto.Message)
- func (m *Data) XXX_Size() int
- func (m *Data) XXX_Unmarshal(b []byte) error
- type GetRequest
- func (*GetRequest) Descriptor() ([]byte, []int)
- func (m *GetRequest) GetUserID() string
- func (*GetRequest) ProtoMessage()
- func (m *GetRequest) Reset()
- func (m *GetRequest) String() string
- func (m *GetRequest) XXX_DiscardUnknown()
- func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetRequest) XXX_Merge(src proto.Message)
- func (m *GetRequest) XXX_Size() int
- func (m *GetRequest) XXX_Unmarshal(b []byte) error
- type UnimplementedUserExtraServer
- func (*UnimplementedUserExtraServer) Add(ctx context.Context, req *Data) (*AddResponse, error)
- func (*UnimplementedUserExtraServer) Get(ctx context.Context, req *GetRequest) (*Data, error)
- func (*UnimplementedUserExtraServer) Update(ctx context.Context, req *UpdateRequest) (*UpdateResponse, error)
- func (*UnimplementedUserExtraServer) Validate(ctx context.Context, req *Data) (*ValidateResponse, error)
- type UpdateRequest
- func (*UpdateRequest) Descriptor() ([]byte, []int)
- func (m *UpdateRequest) GetUpdate() *Data
- func (m *UpdateRequest) GetUserID() string
- func (*UpdateRequest) ProtoMessage()
- func (m *UpdateRequest) Reset()
- func (m *UpdateRequest) String() string
- func (m *UpdateRequest) XXX_DiscardUnknown()
- func (m *UpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateRequest) XXX_Merge(src proto.Message)
- func (m *UpdateRequest) XXX_Size() int
- func (m *UpdateRequest) XXX_Unmarshal(b []byte) error
- type UpdateResponse
- func (*UpdateResponse) Descriptor() ([]byte, []int)
- func (m *UpdateResponse) GetMessage() string
- func (*UpdateResponse) ProtoMessage()
- func (m *UpdateResponse) Reset()
- func (m *UpdateResponse) String() string
- func (m *UpdateResponse) XXX_DiscardUnknown()
- func (m *UpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateResponse) XXX_Merge(src proto.Message)
- func (m *UpdateResponse) XXX_Size() int
- func (m *UpdateResponse) XXX_Unmarshal(b []byte) error
- type UserExtraClient
- type UserExtraServer
- type ValidateResponse
- func (*ValidateResponse) Descriptor() ([]byte, []int)
- func (m *ValidateResponse) GetValid() bool
- func (*ValidateResponse) ProtoMessage()
- func (m *ValidateResponse) Reset()
- func (m *ValidateResponse) String() string
- func (m *ValidateResponse) XXX_DiscardUnknown()
- func (m *ValidateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ValidateResponse) XXX_Merge(src proto.Message)
- func (m *ValidateResponse) XXX_Size() int
- func (m *ValidateResponse) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterUserExtraServer ¶
func RegisterUserExtraServer(s *grpc.Server, srv UserExtraServer)
Types ¶
type AddResponse ¶
type AddResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AddResponse) Descriptor ¶
func (*AddResponse) Descriptor() ([]byte, []int)
func (*AddResponse) GetMessage ¶
func (m *AddResponse) GetMessage() string
func (*AddResponse) ProtoMessage ¶
func (*AddResponse) ProtoMessage()
func (*AddResponse) Reset ¶
func (m *AddResponse) Reset()
func (*AddResponse) String ¶
func (m *AddResponse) String() string
func (*AddResponse) XXX_DiscardUnknown ¶
func (m *AddResponse) XXX_DiscardUnknown()
func (*AddResponse) XXX_Marshal ¶
func (m *AddResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AddResponse) XXX_Merge ¶
func (m *AddResponse) XXX_Merge(src proto.Message)
func (*AddResponse) XXX_Size ¶
func (m *AddResponse) XXX_Size() int
func (*AddResponse) XXX_Unmarshal ¶
func (m *AddResponse) XXX_Unmarshal(b []byte) error
type Data ¶
type Data struct { UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` FirstName string `protobuf:"bytes,2,opt,name=firstName,proto3" json:"firstName,omitempty"` LastName string `protobuf:"bytes,3,opt,name=lastName,proto3" json:"lastName,omitempty"` Gender string `protobuf:"bytes,4,opt,name=gender,proto3" json:"gender,omitempty"` BirthdayUTC int64 `protobuf:"varint,5,opt,name=birthdayUTC,proto3" json:"birthdayUTC,omitempty"` Message string `protobuf:"bytes,6,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Data) Descriptor ¶
func (*Data) GetBirthdayUTC ¶
func (*Data) GetFirstName ¶
func (*Data) GetLastName ¶
func (*Data) GetMessage ¶
func (*Data) ProtoMessage ¶
func (*Data) ProtoMessage()
func (*Data) XXX_DiscardUnknown ¶
func (m *Data) XXX_DiscardUnknown()
func (*Data) XXX_Unmarshal ¶
type GetRequest ¶
type GetRequest struct { UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetRequest) Descriptor ¶
func (*GetRequest) Descriptor() ([]byte, []int)
func (*GetRequest) GetUserID ¶
func (m *GetRequest) GetUserID() string
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) Reset ¶
func (m *GetRequest) Reset()
func (*GetRequest) String ¶
func (m *GetRequest) String() string
func (*GetRequest) XXX_DiscardUnknown ¶
func (m *GetRequest) XXX_DiscardUnknown()
func (*GetRequest) XXX_Marshal ¶
func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetRequest) XXX_Merge ¶
func (m *GetRequest) XXX_Merge(src proto.Message)
func (*GetRequest) XXX_Size ¶
func (m *GetRequest) XXX_Size() int
func (*GetRequest) XXX_Unmarshal ¶
func (m *GetRequest) XXX_Unmarshal(b []byte) error
type UnimplementedUserExtraServer ¶
type UnimplementedUserExtraServer struct { }
UnimplementedUserExtraServer can be embedded to have forward compatible implementations.
func (*UnimplementedUserExtraServer) Add ¶
func (*UnimplementedUserExtraServer) Add(ctx context.Context, req *Data) (*AddResponse, error)
func (*UnimplementedUserExtraServer) Get ¶
func (*UnimplementedUserExtraServer) Get(ctx context.Context, req *GetRequest) (*Data, error)
func (*UnimplementedUserExtraServer) Update ¶
func (*UnimplementedUserExtraServer) Update(ctx context.Context, req *UpdateRequest) (*UpdateResponse, error)
func (*UnimplementedUserExtraServer) Validate ¶ added in v0.0.25
func (*UnimplementedUserExtraServer) Validate(ctx context.Context, req *Data) (*ValidateResponse, error)
type UpdateRequest ¶
type UpdateRequest struct { UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` Update *Data `protobuf:"bytes,2,opt,name=update,proto3" json:"update,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UpdateRequest) Descriptor ¶
func (*UpdateRequest) Descriptor() ([]byte, []int)
func (*UpdateRequest) GetUpdate ¶
func (m *UpdateRequest) GetUpdate() *Data
func (*UpdateRequest) GetUserID ¶
func (m *UpdateRequest) GetUserID() string
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) Reset ¶
func (m *UpdateRequest) Reset()
func (*UpdateRequest) String ¶
func (m *UpdateRequest) String() string
func (*UpdateRequest) XXX_DiscardUnknown ¶
func (m *UpdateRequest) XXX_DiscardUnknown()
func (*UpdateRequest) XXX_Marshal ¶
func (m *UpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateRequest) XXX_Merge ¶
func (m *UpdateRequest) XXX_Merge(src proto.Message)
func (*UpdateRequest) XXX_Size ¶
func (m *UpdateRequest) XXX_Size() int
func (*UpdateRequest) XXX_Unmarshal ¶
func (m *UpdateRequest) XXX_Unmarshal(b []byte) error
type UpdateResponse ¶
type UpdateResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UpdateResponse) Descriptor ¶
func (*UpdateResponse) Descriptor() ([]byte, []int)
func (*UpdateResponse) GetMessage ¶
func (m *UpdateResponse) GetMessage() string
func (*UpdateResponse) ProtoMessage ¶
func (*UpdateResponse) ProtoMessage()
func (*UpdateResponse) Reset ¶
func (m *UpdateResponse) Reset()
func (*UpdateResponse) String ¶
func (m *UpdateResponse) String() string
func (*UpdateResponse) XXX_DiscardUnknown ¶
func (m *UpdateResponse) XXX_DiscardUnknown()
func (*UpdateResponse) XXX_Marshal ¶
func (m *UpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateResponse) XXX_Merge ¶
func (m *UpdateResponse) XXX_Merge(src proto.Message)
func (*UpdateResponse) XXX_Size ¶
func (m *UpdateResponse) XXX_Size() int
func (*UpdateResponse) XXX_Unmarshal ¶
func (m *UpdateResponse) XXX_Unmarshal(b []byte) error
type UserExtraClient ¶
type UserExtraClient interface { Add(ctx context.Context, in *Data, opts ...grpc.CallOption) (*AddResponse, error) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*Data, error) Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) Validate(ctx context.Context, in *Data, opts ...grpc.CallOption) (*ValidateResponse, error) }
UserExtraClient is the client API for UserExtra service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewUserExtraClient ¶
func NewUserExtraClient(cc *grpc.ClientConn) UserExtraClient
type UserExtraServer ¶
type UserExtraServer interface { Add(context.Context, *Data) (*AddResponse, error) Get(context.Context, *GetRequest) (*Data, error) Update(context.Context, *UpdateRequest) (*UpdateResponse, error) Validate(context.Context, *Data) (*ValidateResponse, error) }
UserExtraServer is the server API for UserExtra service.
type ValidateResponse ¶ added in v0.0.25
type ValidateResponse struct { Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ValidateResponse) Descriptor ¶ added in v0.0.25
func (*ValidateResponse) Descriptor() ([]byte, []int)
func (*ValidateResponse) GetValid ¶ added in v0.0.25
func (m *ValidateResponse) GetValid() bool
func (*ValidateResponse) ProtoMessage ¶ added in v0.0.25
func (*ValidateResponse) ProtoMessage()
func (*ValidateResponse) Reset ¶ added in v0.0.25
func (m *ValidateResponse) Reset()
func (*ValidateResponse) String ¶ added in v0.0.25
func (m *ValidateResponse) String() string
func (*ValidateResponse) XXX_DiscardUnknown ¶ added in v0.0.25
func (m *ValidateResponse) XXX_DiscardUnknown()
func (*ValidateResponse) XXX_Marshal ¶ added in v0.0.25
func (m *ValidateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ValidateResponse) XXX_Merge ¶ added in v0.0.25
func (m *ValidateResponse) XXX_Merge(src proto.Message)
func (*ValidateResponse) XXX_Size ¶ added in v0.0.25
func (m *ValidateResponse) XXX_Size() int
func (*ValidateResponse) XXX_Unmarshal ¶ added in v0.0.25
func (m *ValidateResponse) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.