Documentation ¶
Overview ¶
Package chorerewardsv1alpha1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterChoreRewardsServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterChoreRewardsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ChoreRewardsServiceClient) error
- func RegisterChoreRewardsServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterChoreRewardsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ChoreRewardsServiceServer) error
- func RegisterChoreRewardsServiceServer(s *grpc.Server, srv ChoreRewardsServiceServer)
- type AddTaskToFeedRequest
- func (*AddTaskToFeedRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddTaskToFeedRequest) GetTaskFeed() *TaskFeed
- func (*AddTaskToFeedRequest) ProtoMessage()
- func (x *AddTaskToFeedRequest) ProtoReflect() protoreflect.Message
- func (x *AddTaskToFeedRequest) Reset()
- func (x *AddTaskToFeedRequest) String() string
- func (m *AddTaskToFeedRequest) Validate() error
- type AddTaskToFeedRequestValidationError
- func (e AddTaskToFeedRequestValidationError) Cause() error
- func (e AddTaskToFeedRequestValidationError) Error() string
- func (e AddTaskToFeedRequestValidationError) ErrorName() string
- func (e AddTaskToFeedRequestValidationError) Field() string
- func (e AddTaskToFeedRequestValidationError) Key() bool
- func (e AddTaskToFeedRequestValidationError) Reason() string
- type AddTaskToFeedResponse
- func (*AddTaskToFeedResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AddTaskToFeedResponse) GetTaskFeed() *TaskFeed
- func (*AddTaskToFeedResponse) ProtoMessage()
- func (x *AddTaskToFeedResponse) ProtoReflect() protoreflect.Message
- func (x *AddTaskToFeedResponse) Reset()
- func (x *AddTaskToFeedResponse) String() string
- func (m *AddTaskToFeedResponse) Validate() error
- type AddTaskToFeedResponseValidationError
- func (e AddTaskToFeedResponseValidationError) Cause() error
- func (e AddTaskToFeedResponseValidationError) Error() string
- func (e AddTaskToFeedResponseValidationError) ErrorName() string
- func (e AddTaskToFeedResponseValidationError) Field() string
- func (e AddTaskToFeedResponseValidationError) Key() bool
- func (e AddTaskToFeedResponseValidationError) Reason() string
- type Category
- func (*Category) Descriptor() ([]byte, []int)deprecated
- func (x *Category) GetColor() string
- func (x *Category) GetDescription() string
- func (x *Category) GetId() int32
- func (x *Category) GetName() string
- func (x *Category) GetOwner() *User
- func (*Category) ProtoMessage()
- func (x *Category) ProtoReflect() protoreflect.Message
- func (x *Category) Reset()
- func (x *Category) String() string
- func (m *Category) Validate() error
- type CategoryValidationError
- type ChoreRewardsServiceClient
- type ChoreRewardsServiceServer
- type CreateCategoryRequest
- func (*CreateCategoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCategoryRequest) GetCategory() *Category
- func (*CreateCategoryRequest) ProtoMessage()
- func (x *CreateCategoryRequest) ProtoReflect() protoreflect.Message
- func (x *CreateCategoryRequest) Reset()
- func (x *CreateCategoryRequest) String() string
- func (m *CreateCategoryRequest) Validate() error
- type CreateCategoryRequestValidationError
- func (e CreateCategoryRequestValidationError) Cause() error
- func (e CreateCategoryRequestValidationError) Error() string
- func (e CreateCategoryRequestValidationError) ErrorName() string
- func (e CreateCategoryRequestValidationError) Field() string
- func (e CreateCategoryRequestValidationError) Key() bool
- func (e CreateCategoryRequestValidationError) Reason() string
- type CreateCategoryResponse
- func (*CreateCategoryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCategoryResponse) GetCategory() *Category
- func (*CreateCategoryResponse) ProtoMessage()
- func (x *CreateCategoryResponse) ProtoReflect() protoreflect.Message
- func (x *CreateCategoryResponse) Reset()
- func (x *CreateCategoryResponse) String() string
- func (m *CreateCategoryResponse) Validate() error
- type CreateCategoryResponseValidationError
- func (e CreateCategoryResponseValidationError) Cause() error
- func (e CreateCategoryResponseValidationError) Error() string
- func (e CreateCategoryResponseValidationError) ErrorName() string
- func (e CreateCategoryResponseValidationError) Field() string
- func (e CreateCategoryResponseValidationError) Key() bool
- func (e CreateCategoryResponseValidationError) Reason() string
- type CreateTaskRequest
- func (*CreateTaskRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTaskRequest) GetTask() *Task
- func (*CreateTaskRequest) ProtoMessage()
- func (x *CreateTaskRequest) ProtoReflect() protoreflect.Message
- func (x *CreateTaskRequest) Reset()
- func (x *CreateTaskRequest) String() string
- func (m *CreateTaskRequest) Validate() error
- type CreateTaskRequestValidationError
- func (e CreateTaskRequestValidationError) Cause() error
- func (e CreateTaskRequestValidationError) Error() string
- func (e CreateTaskRequestValidationError) ErrorName() string
- func (e CreateTaskRequestValidationError) Field() string
- func (e CreateTaskRequestValidationError) Key() bool
- func (e CreateTaskRequestValidationError) Reason() string
- type CreateTaskResponse
- func (*CreateTaskResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTaskResponse) GetTask() *Task
- func (*CreateTaskResponse) ProtoMessage()
- func (x *CreateTaskResponse) ProtoReflect() protoreflect.Message
- func (x *CreateTaskResponse) Reset()
- func (x *CreateTaskResponse) String() string
- func (m *CreateTaskResponse) Validate() error
- type CreateTaskResponseValidationError
- func (e CreateTaskResponseValidationError) Cause() error
- func (e CreateTaskResponseValidationError) Error() string
- func (e CreateTaskResponseValidationError) ErrorName() string
- func (e CreateTaskResponseValidationError) Field() string
- func (e CreateTaskResponseValidationError) Key() bool
- func (e CreateTaskResponseValidationError) Reason() string
- type CreateUserRequest
- func (*CreateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserRequest) GetUser() *User
- func (*CreateUserRequest) ProtoMessage()
- func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
- func (x *CreateUserRequest) Reset()
- func (x *CreateUserRequest) String() string
- func (m *CreateUserRequest) Validate() error
- type CreateUserRequestValidationError
- func (e CreateUserRequestValidationError) Cause() error
- func (e CreateUserRequestValidationError) Error() string
- func (e CreateUserRequestValidationError) ErrorName() string
- func (e CreateUserRequestValidationError) Field() string
- func (e CreateUserRequestValidationError) Key() bool
- func (e CreateUserRequestValidationError) Reason() string
- type CreateUserResponse
- func (*CreateUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserResponse) GetUser() *User
- func (*CreateUserResponse) ProtoMessage()
- func (x *CreateUserResponse) ProtoReflect() protoreflect.Message
- func (x *CreateUserResponse) Reset()
- func (x *CreateUserResponse) String() string
- func (m *CreateUserResponse) Validate() error
- type CreateUserResponseValidationError
- func (e CreateUserResponseValidationError) Cause() error
- func (e CreateUserResponseValidationError) Error() string
- func (e CreateUserResponseValidationError) ErrorName() string
- func (e CreateUserResponseValidationError) Field() string
- func (e CreateUserResponseValidationError) Key() bool
- func (e CreateUserResponseValidationError) Reason() string
- type ListCategoriesRequest
- func (*ListCategoriesRequest) Descriptor() ([]byte, []int)deprecated
- func (*ListCategoriesRequest) ProtoMessage()
- func (x *ListCategoriesRequest) ProtoReflect() protoreflect.Message
- func (x *ListCategoriesRequest) Reset()
- func (x *ListCategoriesRequest) String() string
- func (m *ListCategoriesRequest) Validate() error
- type ListCategoriesRequestValidationError
- func (e ListCategoriesRequestValidationError) Cause() error
- func (e ListCategoriesRequestValidationError) Error() string
- func (e ListCategoriesRequestValidationError) ErrorName() string
- func (e ListCategoriesRequestValidationError) Field() string
- func (e ListCategoriesRequestValidationError) Key() bool
- func (e ListCategoriesRequestValidationError) Reason() string
- type ListCategoriesResponse
- func (*ListCategoriesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListCategoriesResponse) GetCategories() []*Category
- func (*ListCategoriesResponse) ProtoMessage()
- func (x *ListCategoriesResponse) ProtoReflect() protoreflect.Message
- func (x *ListCategoriesResponse) Reset()
- func (x *ListCategoriesResponse) String() string
- func (m *ListCategoriesResponse) Validate() error
- type ListCategoriesResponseValidationError
- func (e ListCategoriesResponseValidationError) Cause() error
- func (e ListCategoriesResponseValidationError) Error() string
- func (e ListCategoriesResponseValidationError) ErrorName() string
- func (e ListCategoriesResponseValidationError) Field() string
- func (e ListCategoriesResponseValidationError) Key() bool
- func (e ListCategoriesResponseValidationError) Reason() string
- type ListTasksFeedRequest
- func (*ListTasksFeedRequest) Descriptor() ([]byte, []int)deprecated
- func (*ListTasksFeedRequest) ProtoMessage()
- func (x *ListTasksFeedRequest) ProtoReflect() protoreflect.Message
- func (x *ListTasksFeedRequest) Reset()
- func (x *ListTasksFeedRequest) String() string
- func (m *ListTasksFeedRequest) Validate() error
- type ListTasksFeedRequestValidationError
- func (e ListTasksFeedRequestValidationError) Cause() error
- func (e ListTasksFeedRequestValidationError) Error() string
- func (e ListTasksFeedRequestValidationError) ErrorName() string
- func (e ListTasksFeedRequestValidationError) Field() string
- func (e ListTasksFeedRequestValidationError) Key() bool
- func (e ListTasksFeedRequestValidationError) Reason() string
- type ListTasksFeedResponse
- func (*ListTasksFeedResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListTasksFeedResponse) GetTaskFeed() []*TaskFeed
- func (*ListTasksFeedResponse) ProtoMessage()
- func (x *ListTasksFeedResponse) ProtoReflect() protoreflect.Message
- func (x *ListTasksFeedResponse) Reset()
- func (x *ListTasksFeedResponse) String() string
- func (m *ListTasksFeedResponse) Validate() error
- type ListTasksFeedResponseValidationError
- func (e ListTasksFeedResponseValidationError) Cause() error
- func (e ListTasksFeedResponseValidationError) Error() string
- func (e ListTasksFeedResponseValidationError) ErrorName() string
- func (e ListTasksFeedResponseValidationError) Field() string
- func (e ListTasksFeedResponseValidationError) Key() bool
- func (e ListTasksFeedResponseValidationError) Reason() string
- type ListTasksRequest
- type ListTasksRequestValidationError
- func (e ListTasksRequestValidationError) Cause() error
- func (e ListTasksRequestValidationError) Error() string
- func (e ListTasksRequestValidationError) ErrorName() string
- func (e ListTasksRequestValidationError) Field() string
- func (e ListTasksRequestValidationError) Key() bool
- func (e ListTasksRequestValidationError) Reason() string
- type ListTasksResponse
- func (*ListTasksResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListTasksResponse) GetTasks() []*Task
- func (*ListTasksResponse) ProtoMessage()
- func (x *ListTasksResponse) ProtoReflect() protoreflect.Message
- func (x *ListTasksResponse) Reset()
- func (x *ListTasksResponse) String() string
- func (m *ListTasksResponse) Validate() error
- type ListTasksResponseValidationError
- func (e ListTasksResponseValidationError) Cause() error
- func (e ListTasksResponseValidationError) Error() string
- func (e ListTasksResponseValidationError) ErrorName() string
- func (e ListTasksResponseValidationError) Field() string
- func (e ListTasksResponseValidationError) Key() bool
- func (e ListTasksResponseValidationError) Reason() string
- type ListUsersRequest
- type ListUsersRequestValidationError
- func (e ListUsersRequestValidationError) Cause() error
- func (e ListUsersRequestValidationError) Error() string
- func (e ListUsersRequestValidationError) ErrorName() string
- func (e ListUsersRequestValidationError) Field() string
- func (e ListUsersRequestValidationError) Key() bool
- func (e ListUsersRequestValidationError) Reason() string
- type ListUsersResponse
- func (*ListUsersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListUsersResponse) GetUsers() []*User
- func (*ListUsersResponse) ProtoMessage()
- func (x *ListUsersResponse) ProtoReflect() protoreflect.Message
- func (x *ListUsersResponse) Reset()
- func (x *ListUsersResponse) String() string
- func (m *ListUsersResponse) Validate() error
- type ListUsersResponseValidationError
- func (e ListUsersResponseValidationError) Cause() error
- func (e ListUsersResponseValidationError) Error() string
- func (e ListUsersResponseValidationError) ErrorName() string
- func (e ListUsersResponseValidationError) Field() string
- func (e ListUsersResponseValidationError) Key() bool
- func (e ListUsersResponseValidationError) Reason() string
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetPassword() string
- func (x *LoginRequest) GetPin() int32
- func (x *LoginRequest) GetUsername() string
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- func (m *LoginRequest) Validate() error
- type LoginRequestValidationError
- func (e LoginRequestValidationError) Cause() error
- func (e LoginRequestValidationError) Error() string
- func (e LoginRequestValidationError) ErrorName() string
- func (e LoginRequestValidationError) Field() string
- func (e LoginRequestValidationError) Key() bool
- func (e LoginRequestValidationError) Reason() string
- type LoginResponse
- func (*LoginResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoginResponse) GetToken() string
- func (*LoginResponse) ProtoMessage()
- func (x *LoginResponse) ProtoReflect() protoreflect.Message
- func (x *LoginResponse) Reset()
- func (x *LoginResponse) String() string
- func (m *LoginResponse) Validate() error
- type LoginResponseValidationError
- func (e LoginResponseValidationError) Cause() error
- func (e LoginResponseValidationError) Error() string
- func (e LoginResponseValidationError) ErrorName() string
- func (e LoginResponseValidationError) Field() string
- func (e LoginResponseValidationError) Key() bool
- func (e LoginResponseValidationError) Reason() string
- type Task
- func (*Task) Descriptor() ([]byte, []int)deprecated
- func (x *Task) GetAssignee() *User
- func (x *Task) GetCategory() *Category
- func (x *Task) GetDescription() string
- func (x *Task) GetId() int32
- func (x *Task) GetIsRepeatable() bool
- func (x *Task) GetName() string
- func (x *Task) GetPoints() int32
- func (*Task) ProtoMessage()
- func (x *Task) ProtoReflect() protoreflect.Message
- func (x *Task) Reset()
- func (x *Task) String() string
- func (m *Task) Validate() error
- type TaskFeed
- func (*TaskFeed) Descriptor() ([]byte, []int)deprecated
- func (x *TaskFeed) GetAssigneeId() *User
- func (x *TaskFeed) GetCompletedAt() *timestamp.Timestamp
- func (x *TaskFeed) GetId() int32
- func (x *TaskFeed) GetIsApproved() bool
- func (x *TaskFeed) GetIsComplete() bool
- func (x *TaskFeed) GetPoints() int32
- func (x *TaskFeed) GetTask() *Task
- func (*TaskFeed) ProtoMessage()
- func (x *TaskFeed) ProtoReflect() protoreflect.Message
- func (x *TaskFeed) Reset()
- func (x *TaskFeed) String() string
- func (m *TaskFeed) Validate() error
- type TaskFeedValidationError
- type TaskValidationError
- type UnimplementedChoreRewardsServiceServer
- func (UnimplementedChoreRewardsServiceServer) AddTaskToFeed(context.Context, *AddTaskToFeedRequest) (*AddTaskToFeedResponse, error)
- func (UnimplementedChoreRewardsServiceServer) CreateCategory(context.Context, *CreateCategoryRequest) (*CreateCategoryResponse, error)
- func (UnimplementedChoreRewardsServiceServer) CreateTask(context.Context, *CreateTaskRequest) (*CreateTaskResponse, error)
- func (UnimplementedChoreRewardsServiceServer) CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error)
- func (UnimplementedChoreRewardsServiceServer) ListCategories(context.Context, *ListCategoriesRequest) (*ListCategoriesResponse, error)
- func (UnimplementedChoreRewardsServiceServer) ListTasks(context.Context, *ListTasksRequest) (*ListTasksResponse, error)
- func (UnimplementedChoreRewardsServiceServer) ListTasksFeed(context.Context, *ListTasksFeedRequest) (*ListTasksFeedResponse, error)
- func (UnimplementedChoreRewardsServiceServer) ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error)
- func (UnimplementedChoreRewardsServiceServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
- type UnsafeChoreRewardsServiceServer
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetAvatar() string
- func (x *User) GetEmail() string
- func (x *User) GetId() int32
- func (x *User) GetIsActive() bool
- func (x *User) GetIsAdmin() bool
- func (x *User) GetIsParent() bool
- func (x *User) GetPassword() string
- func (x *User) GetPin() int32
- func (x *User) GetPoints() int32
- func (x *User) GetUsername() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- func (m *User) Validate() error
- type UserValidationError
Constants ¶
This section is empty.
Variables ¶
var File_chorerewards_v1alpha1_chorerewards_proto protoreflect.FileDescriptor
Functions ¶
func RegisterChoreRewardsServiceHandler ¶
func RegisterChoreRewardsServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterChoreRewardsServiceHandler registers the http handlers for service ChoreRewardsService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterChoreRewardsServiceHandlerClient ¶
func RegisterChoreRewardsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ChoreRewardsServiceClient) error
RegisterChoreRewardsServiceHandlerClient registers the http handlers for service ChoreRewardsService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ChoreRewardsServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ChoreRewardsServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ChoreRewardsServiceClient" to call the correct interceptors.
func RegisterChoreRewardsServiceHandlerFromEndpoint ¶
func RegisterChoreRewardsServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterChoreRewardsServiceHandlerFromEndpoint is same as RegisterChoreRewardsServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterChoreRewardsServiceHandlerServer ¶
func RegisterChoreRewardsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ChoreRewardsServiceServer) error
RegisterChoreRewardsServiceHandlerServer registers the http handlers for service ChoreRewardsService to "mux". UnaryRPC :call ChoreRewardsServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterChoreRewardsServiceHandlerFromEndpoint instead.
func RegisterChoreRewardsServiceServer ¶
func RegisterChoreRewardsServiceServer(s *grpc.Server, srv ChoreRewardsServiceServer)
Types ¶
type AddTaskToFeedRequest ¶
type AddTaskToFeedRequest struct { // The task to add to the feed TaskFeed *TaskFeed `protobuf:"bytes,1,opt,name=task_feed,json=taskFeed,proto3" json:"task_feed,omitempty"` // contains filtered or unexported fields }
func (*AddTaskToFeedRequest) Descriptor
deprecated
func (*AddTaskToFeedRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddTaskToFeedRequest.ProtoReflect.Descriptor instead.
func (*AddTaskToFeedRequest) GetTaskFeed ¶
func (x *AddTaskToFeedRequest) GetTaskFeed() *TaskFeed
func (*AddTaskToFeedRequest) ProtoMessage ¶
func (*AddTaskToFeedRequest) ProtoMessage()
func (*AddTaskToFeedRequest) ProtoReflect ¶
func (x *AddTaskToFeedRequest) ProtoReflect() protoreflect.Message
func (*AddTaskToFeedRequest) Reset ¶
func (x *AddTaskToFeedRequest) Reset()
func (*AddTaskToFeedRequest) String ¶
func (x *AddTaskToFeedRequest) String() string
func (*AddTaskToFeedRequest) Validate ¶
func (m *AddTaskToFeedRequest) Validate() error
Validate checks the field values on AddTaskToFeedRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type AddTaskToFeedRequestValidationError ¶
type AddTaskToFeedRequestValidationError struct {
// contains filtered or unexported fields
}
AddTaskToFeedRequestValidationError is the validation error returned by AddTaskToFeedRequest.Validate if the designated constraints aren't met.
func (AddTaskToFeedRequestValidationError) Cause ¶
func (e AddTaskToFeedRequestValidationError) Cause() error
Cause function returns cause value.
func (AddTaskToFeedRequestValidationError) Error ¶
func (e AddTaskToFeedRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AddTaskToFeedRequestValidationError) ErrorName ¶
func (e AddTaskToFeedRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AddTaskToFeedRequestValidationError) Field ¶
func (e AddTaskToFeedRequestValidationError) Field() string
Field function returns field value.
func (AddTaskToFeedRequestValidationError) Key ¶
func (e AddTaskToFeedRequestValidationError) Key() bool
Key function returns key value.
func (AddTaskToFeedRequestValidationError) Reason ¶
func (e AddTaskToFeedRequestValidationError) Reason() string
Reason function returns reason value.
type AddTaskToFeedResponse ¶
type AddTaskToFeedResponse struct { // The added task TaskFeed *TaskFeed `protobuf:"bytes,1,opt,name=task_feed,json=taskFeed,proto3" json:"task_feed,omitempty"` // contains filtered or unexported fields }
func (*AddTaskToFeedResponse) Descriptor
deprecated
func (*AddTaskToFeedResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddTaskToFeedResponse.ProtoReflect.Descriptor instead.
func (*AddTaskToFeedResponse) GetTaskFeed ¶
func (x *AddTaskToFeedResponse) GetTaskFeed() *TaskFeed
func (*AddTaskToFeedResponse) ProtoMessage ¶
func (*AddTaskToFeedResponse) ProtoMessage()
func (*AddTaskToFeedResponse) ProtoReflect ¶
func (x *AddTaskToFeedResponse) ProtoReflect() protoreflect.Message
func (*AddTaskToFeedResponse) Reset ¶
func (x *AddTaskToFeedResponse) Reset()
func (*AddTaskToFeedResponse) String ¶
func (x *AddTaskToFeedResponse) String() string
func (*AddTaskToFeedResponse) Validate ¶
func (m *AddTaskToFeedResponse) Validate() error
Validate checks the field values on AddTaskToFeedResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type AddTaskToFeedResponseValidationError ¶
type AddTaskToFeedResponseValidationError struct {
// contains filtered or unexported fields
}
AddTaskToFeedResponseValidationError is the validation error returned by AddTaskToFeedResponse.Validate if the designated constraints aren't met.
func (AddTaskToFeedResponseValidationError) Cause ¶
func (e AddTaskToFeedResponseValidationError) Cause() error
Cause function returns cause value.
func (AddTaskToFeedResponseValidationError) Error ¶
func (e AddTaskToFeedResponseValidationError) Error() string
Error satisfies the builtin error interface
func (AddTaskToFeedResponseValidationError) ErrorName ¶
func (e AddTaskToFeedResponseValidationError) ErrorName() string
ErrorName returns error name.
func (AddTaskToFeedResponseValidationError) Field ¶
func (e AddTaskToFeedResponseValidationError) Field() string
Field function returns field value.
func (AddTaskToFeedResponseValidationError) Key ¶
func (e AddTaskToFeedResponseValidationError) Key() bool
Key function returns key value.
func (AddTaskToFeedResponseValidationError) Reason ¶
func (e AddTaskToFeedResponseValidationError) Reason() string
Reason function returns reason value.
type Category ¶
type Category struct { // The unique identifier of the category Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // The name of the category Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // The description of the category Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // The color of the category Color string `protobuf:"bytes,4,opt,name=color,proto3" json:"color,omitempty"` // The owner of the category Owner *User `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"` // contains filtered or unexported fields }
func (*Category) Descriptor
deprecated
func (*Category) GetDescription ¶
func (*Category) ProtoMessage ¶
func (*Category) ProtoMessage()
func (*Category) ProtoReflect ¶
func (x *Category) ProtoReflect() protoreflect.Message
type CategoryValidationError ¶
type CategoryValidationError struct {
// contains filtered or unexported fields
}
CategoryValidationError is the validation error returned by Category.Validate if the designated constraints aren't met.
func (CategoryValidationError) Cause ¶
func (e CategoryValidationError) Cause() error
Cause function returns cause value.
func (CategoryValidationError) Error ¶
func (e CategoryValidationError) Error() string
Error satisfies the builtin error interface
func (CategoryValidationError) ErrorName ¶
func (e CategoryValidationError) ErrorName() string
ErrorName returns error name.
func (CategoryValidationError) Field ¶
func (e CategoryValidationError) Field() string
Field function returns field value.
func (CategoryValidationError) Key ¶
func (e CategoryValidationError) Key() bool
Key function returns key value.
func (CategoryValidationError) Reason ¶
func (e CategoryValidationError) Reason() string
Reason function returns reason value.
type ChoreRewardsServiceClient ¶
type ChoreRewardsServiceClient interface { // CreateCategory // // Creates a new Category CreateCategory(ctx context.Context, in *CreateCategoryRequest, opts ...grpc.CallOption) (*CreateCategoryResponse, error) // ListCategories // // Lists Categories ListCategories(ctx context.Context, in *ListCategoriesRequest, opts ...grpc.CallOption) (*ListCategoriesResponse, error) // CreateTask // // Creates a new Task CreateTask(ctx context.Context, in *CreateTaskRequest, opts ...grpc.CallOption) (*CreateTaskResponse, error) // ListTasks // // Lists Tasks ListTasks(ctx context.Context, in *ListTasksRequest, opts ...grpc.CallOption) (*ListTasksResponse, error) // AddTaskToFeed // // Adds a Task to the TaskFeed AddTaskToFeed(ctx context.Context, in *AddTaskToFeedRequest, opts ...grpc.CallOption) (*AddTaskToFeedResponse, error) // ListTasksFeed // // Lists Tasks Feed ListTasksFeed(ctx context.Context, in *ListTasksFeedRequest, opts ...grpc.CallOption) (*ListTasksFeedResponse, error) // CreateUser // // Creates a new User CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error) // ListUsers // // Lists Users ListUsers(ctx context.Context, in *ListUsersRequest, opts ...grpc.CallOption) (*ListUsersResponse, error) // Login // // Authenticates and provides a auth token if successful Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) }
ChoreRewardsServiceClient is the client API for ChoreRewardsService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewChoreRewardsServiceClient ¶
func NewChoreRewardsServiceClient(cc grpc.ClientConnInterface) ChoreRewardsServiceClient
type ChoreRewardsServiceServer ¶
type ChoreRewardsServiceServer interface { // CreateCategory // // Creates a new Category CreateCategory(context.Context, *CreateCategoryRequest) (*CreateCategoryResponse, error) // ListCategories // // Lists Categories ListCategories(context.Context, *ListCategoriesRequest) (*ListCategoriesResponse, error) // CreateTask // // Creates a new Task CreateTask(context.Context, *CreateTaskRequest) (*CreateTaskResponse, error) // ListTasks // // Lists Tasks ListTasks(context.Context, *ListTasksRequest) (*ListTasksResponse, error) // AddTaskToFeed // // Adds a Task to the TaskFeed AddTaskToFeed(context.Context, *AddTaskToFeedRequest) (*AddTaskToFeedResponse, error) // ListTasksFeed // // Lists Tasks Feed ListTasksFeed(context.Context, *ListTasksFeedRequest) (*ListTasksFeedResponse, error) // CreateUser // // Creates a new User CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error) // ListUsers // // Lists Users ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error) // Login // // Authenticates and provides a auth token if successful Login(context.Context, *LoginRequest) (*LoginResponse, error) }
ChoreRewardsServiceServer is the server API for ChoreRewardsService service. All implementations should embed UnimplementedChoreRewardsServiceServer for forward compatibility
type CreateCategoryRequest ¶
type CreateCategoryRequest struct { // The category to create Category *Category `protobuf:"bytes,1,opt,name=category,proto3" json:"category,omitempty"` // contains filtered or unexported fields }
func (*CreateCategoryRequest) Descriptor
deprecated
func (*CreateCategoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateCategoryRequest.ProtoReflect.Descriptor instead.
func (*CreateCategoryRequest) GetCategory ¶
func (x *CreateCategoryRequest) GetCategory() *Category
func (*CreateCategoryRequest) ProtoMessage ¶
func (*CreateCategoryRequest) ProtoMessage()
func (*CreateCategoryRequest) ProtoReflect ¶
func (x *CreateCategoryRequest) ProtoReflect() protoreflect.Message
func (*CreateCategoryRequest) Reset ¶
func (x *CreateCategoryRequest) Reset()
func (*CreateCategoryRequest) String ¶
func (x *CreateCategoryRequest) String() string
func (*CreateCategoryRequest) Validate ¶
func (m *CreateCategoryRequest) Validate() error
Validate checks the field values on CreateCategoryRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CreateCategoryRequestValidationError ¶
type CreateCategoryRequestValidationError struct {
// contains filtered or unexported fields
}
CreateCategoryRequestValidationError is the validation error returned by CreateCategoryRequest.Validate if the designated constraints aren't met.
func (CreateCategoryRequestValidationError) Cause ¶
func (e CreateCategoryRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateCategoryRequestValidationError) Error ¶
func (e CreateCategoryRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateCategoryRequestValidationError) ErrorName ¶
func (e CreateCategoryRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateCategoryRequestValidationError) Field ¶
func (e CreateCategoryRequestValidationError) Field() string
Field function returns field value.
func (CreateCategoryRequestValidationError) Key ¶
func (e CreateCategoryRequestValidationError) Key() bool
Key function returns key value.
func (CreateCategoryRequestValidationError) Reason ¶
func (e CreateCategoryRequestValidationError) Reason() string
Reason function returns reason value.
type CreateCategoryResponse ¶
type CreateCategoryResponse struct { // The created category Category *Category `protobuf:"bytes,1,opt,name=category,proto3" json:"category,omitempty"` // contains filtered or unexported fields }
func (*CreateCategoryResponse) Descriptor
deprecated
func (*CreateCategoryResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateCategoryResponse.ProtoReflect.Descriptor instead.
func (*CreateCategoryResponse) GetCategory ¶
func (x *CreateCategoryResponse) GetCategory() *Category
func (*CreateCategoryResponse) ProtoMessage ¶
func (*CreateCategoryResponse) ProtoMessage()
func (*CreateCategoryResponse) ProtoReflect ¶
func (x *CreateCategoryResponse) ProtoReflect() protoreflect.Message
func (*CreateCategoryResponse) Reset ¶
func (x *CreateCategoryResponse) Reset()
func (*CreateCategoryResponse) String ¶
func (x *CreateCategoryResponse) String() string
func (*CreateCategoryResponse) Validate ¶
func (m *CreateCategoryResponse) Validate() error
Validate checks the field values on CreateCategoryResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CreateCategoryResponseValidationError ¶
type CreateCategoryResponseValidationError struct {
// contains filtered or unexported fields
}
CreateCategoryResponseValidationError is the validation error returned by CreateCategoryResponse.Validate if the designated constraints aren't met.
func (CreateCategoryResponseValidationError) Cause ¶
func (e CreateCategoryResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateCategoryResponseValidationError) Error ¶
func (e CreateCategoryResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateCategoryResponseValidationError) ErrorName ¶
func (e CreateCategoryResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateCategoryResponseValidationError) Field ¶
func (e CreateCategoryResponseValidationError) Field() string
Field function returns field value.
func (CreateCategoryResponseValidationError) Key ¶
func (e CreateCategoryResponseValidationError) Key() bool
Key function returns key value.
func (CreateCategoryResponseValidationError) Reason ¶
func (e CreateCategoryResponseValidationError) Reason() string
Reason function returns reason value.
type CreateTaskRequest ¶
type CreateTaskRequest struct { // The task to create Task *Task `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"` // contains filtered or unexported fields }
func (*CreateTaskRequest) Descriptor
deprecated
func (*CreateTaskRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateTaskRequest.ProtoReflect.Descriptor instead.
func (*CreateTaskRequest) GetTask ¶
func (x *CreateTaskRequest) GetTask() *Task
func (*CreateTaskRequest) ProtoMessage ¶
func (*CreateTaskRequest) ProtoMessage()
func (*CreateTaskRequest) ProtoReflect ¶
func (x *CreateTaskRequest) ProtoReflect() protoreflect.Message
func (*CreateTaskRequest) Reset ¶
func (x *CreateTaskRequest) Reset()
func (*CreateTaskRequest) String ¶
func (x *CreateTaskRequest) String() string
func (*CreateTaskRequest) Validate ¶
func (m *CreateTaskRequest) Validate() error
Validate checks the field values on CreateTaskRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CreateTaskRequestValidationError ¶
type CreateTaskRequestValidationError struct {
// contains filtered or unexported fields
}
CreateTaskRequestValidationError is the validation error returned by CreateTaskRequest.Validate if the designated constraints aren't met.
func (CreateTaskRequestValidationError) Cause ¶
func (e CreateTaskRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateTaskRequestValidationError) Error ¶
func (e CreateTaskRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateTaskRequestValidationError) ErrorName ¶
func (e CreateTaskRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateTaskRequestValidationError) Field ¶
func (e CreateTaskRequestValidationError) Field() string
Field function returns field value.
func (CreateTaskRequestValidationError) Key ¶
func (e CreateTaskRequestValidationError) Key() bool
Key function returns key value.
func (CreateTaskRequestValidationError) Reason ¶
func (e CreateTaskRequestValidationError) Reason() string
Reason function returns reason value.
type CreateTaskResponse ¶
type CreateTaskResponse struct { // The created task Task *Task `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"` // contains filtered or unexported fields }
func (*CreateTaskResponse) Descriptor
deprecated
func (*CreateTaskResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateTaskResponse.ProtoReflect.Descriptor instead.
func (*CreateTaskResponse) GetTask ¶
func (x *CreateTaskResponse) GetTask() *Task
func (*CreateTaskResponse) ProtoMessage ¶
func (*CreateTaskResponse) ProtoMessage()
func (*CreateTaskResponse) ProtoReflect ¶
func (x *CreateTaskResponse) ProtoReflect() protoreflect.Message
func (*CreateTaskResponse) Reset ¶
func (x *CreateTaskResponse) Reset()
func (*CreateTaskResponse) String ¶
func (x *CreateTaskResponse) String() string
func (*CreateTaskResponse) Validate ¶
func (m *CreateTaskResponse) Validate() error
Validate checks the field values on CreateTaskResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CreateTaskResponseValidationError ¶
type CreateTaskResponseValidationError struct {
// contains filtered or unexported fields
}
CreateTaskResponseValidationError is the validation error returned by CreateTaskResponse.Validate if the designated constraints aren't met.
func (CreateTaskResponseValidationError) Cause ¶
func (e CreateTaskResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateTaskResponseValidationError) Error ¶
func (e CreateTaskResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateTaskResponseValidationError) ErrorName ¶
func (e CreateTaskResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateTaskResponseValidationError) Field ¶
func (e CreateTaskResponseValidationError) Field() string
Field function returns field value.
func (CreateTaskResponseValidationError) Key ¶
func (e CreateTaskResponseValidationError) Key() bool
Key function returns key value.
func (CreateTaskResponseValidationError) Reason ¶
func (e CreateTaskResponseValidationError) Reason() string
Reason function returns reason value.
type CreateUserRequest ¶
type CreateUserRequest struct { // The user to create User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*CreateUserRequest) Descriptor
deprecated
func (*CreateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.
func (*CreateUserRequest) GetUser ¶
func (x *CreateUserRequest) GetUser() *User
func (*CreateUserRequest) ProtoMessage ¶
func (*CreateUserRequest) ProtoMessage()
func (*CreateUserRequest) ProtoReflect ¶
func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
func (*CreateUserRequest) Reset ¶
func (x *CreateUserRequest) Reset()
func (*CreateUserRequest) String ¶
func (x *CreateUserRequest) String() string
func (*CreateUserRequest) Validate ¶
func (m *CreateUserRequest) Validate() error
Validate checks the field values on CreateUserRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CreateUserRequestValidationError ¶
type CreateUserRequestValidationError struct {
// contains filtered or unexported fields
}
CreateUserRequestValidationError is the validation error returned by CreateUserRequest.Validate if the designated constraints aren't met.
func (CreateUserRequestValidationError) Cause ¶
func (e CreateUserRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateUserRequestValidationError) Error ¶
func (e CreateUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateUserRequestValidationError) ErrorName ¶
func (e CreateUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateUserRequestValidationError) Field ¶
func (e CreateUserRequestValidationError) Field() string
Field function returns field value.
func (CreateUserRequestValidationError) Key ¶
func (e CreateUserRequestValidationError) Key() bool
Key function returns key value.
func (CreateUserRequestValidationError) Reason ¶
func (e CreateUserRequestValidationError) Reason() string
Reason function returns reason value.
type CreateUserResponse ¶
type CreateUserResponse struct { // The created user User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*CreateUserResponse) Descriptor
deprecated
func (*CreateUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead.
func (*CreateUserResponse) GetUser ¶
func (x *CreateUserResponse) GetUser() *User
func (*CreateUserResponse) ProtoMessage ¶
func (*CreateUserResponse) ProtoMessage()
func (*CreateUserResponse) ProtoReflect ¶
func (x *CreateUserResponse) ProtoReflect() protoreflect.Message
func (*CreateUserResponse) Reset ¶
func (x *CreateUserResponse) Reset()
func (*CreateUserResponse) String ¶
func (x *CreateUserResponse) String() string
func (*CreateUserResponse) Validate ¶
func (m *CreateUserResponse) Validate() error
Validate checks the field values on CreateUserResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CreateUserResponseValidationError ¶
type CreateUserResponseValidationError struct {
// contains filtered or unexported fields
}
CreateUserResponseValidationError is the validation error returned by CreateUserResponse.Validate if the designated constraints aren't met.
func (CreateUserResponseValidationError) Cause ¶
func (e CreateUserResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateUserResponseValidationError) Error ¶
func (e CreateUserResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateUserResponseValidationError) ErrorName ¶
func (e CreateUserResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateUserResponseValidationError) Field ¶
func (e CreateUserResponseValidationError) Field() string
Field function returns field value.
func (CreateUserResponseValidationError) Key ¶
func (e CreateUserResponseValidationError) Key() bool
Key function returns key value.
func (CreateUserResponseValidationError) Reason ¶
func (e CreateUserResponseValidationError) Reason() string
Reason function returns reason value.
type ListCategoriesRequest ¶
type ListCategoriesRequest struct {
// contains filtered or unexported fields
}
func (*ListCategoriesRequest) Descriptor
deprecated
func (*ListCategoriesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListCategoriesRequest.ProtoReflect.Descriptor instead.
func (*ListCategoriesRequest) ProtoMessage ¶
func (*ListCategoriesRequest) ProtoMessage()
func (*ListCategoriesRequest) ProtoReflect ¶
func (x *ListCategoriesRequest) ProtoReflect() protoreflect.Message
func (*ListCategoriesRequest) Reset ¶
func (x *ListCategoriesRequest) Reset()
func (*ListCategoriesRequest) String ¶
func (x *ListCategoriesRequest) String() string
func (*ListCategoriesRequest) Validate ¶
func (m *ListCategoriesRequest) Validate() error
Validate checks the field values on ListCategoriesRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ListCategoriesRequestValidationError ¶
type ListCategoriesRequestValidationError struct {
// contains filtered or unexported fields
}
ListCategoriesRequestValidationError is the validation error returned by ListCategoriesRequest.Validate if the designated constraints aren't met.
func (ListCategoriesRequestValidationError) Cause ¶
func (e ListCategoriesRequestValidationError) Cause() error
Cause function returns cause value.
func (ListCategoriesRequestValidationError) Error ¶
func (e ListCategoriesRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListCategoriesRequestValidationError) ErrorName ¶
func (e ListCategoriesRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListCategoriesRequestValidationError) Field ¶
func (e ListCategoriesRequestValidationError) Field() string
Field function returns field value.
func (ListCategoriesRequestValidationError) Key ¶
func (e ListCategoriesRequestValidationError) Key() bool
Key function returns key value.
func (ListCategoriesRequestValidationError) Reason ¶
func (e ListCategoriesRequestValidationError) Reason() string
Reason function returns reason value.
type ListCategoriesResponse ¶
type ListCategoriesResponse struct { // The list of Tasks Categories []*Category `protobuf:"bytes,1,rep,name=categories,proto3" json:"categories,omitempty"` // contains filtered or unexported fields }
func (*ListCategoriesResponse) Descriptor
deprecated
func (*ListCategoriesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListCategoriesResponse.ProtoReflect.Descriptor instead.
func (*ListCategoriesResponse) GetCategories ¶
func (x *ListCategoriesResponse) GetCategories() []*Category
func (*ListCategoriesResponse) ProtoMessage ¶
func (*ListCategoriesResponse) ProtoMessage()
func (*ListCategoriesResponse) ProtoReflect ¶
func (x *ListCategoriesResponse) ProtoReflect() protoreflect.Message
func (*ListCategoriesResponse) Reset ¶
func (x *ListCategoriesResponse) Reset()
func (*ListCategoriesResponse) String ¶
func (x *ListCategoriesResponse) String() string
func (*ListCategoriesResponse) Validate ¶
func (m *ListCategoriesResponse) Validate() error
Validate checks the field values on ListCategoriesResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ListCategoriesResponseValidationError ¶
type ListCategoriesResponseValidationError struct {
// contains filtered or unexported fields
}
ListCategoriesResponseValidationError is the validation error returned by ListCategoriesResponse.Validate if the designated constraints aren't met.
func (ListCategoriesResponseValidationError) Cause ¶
func (e ListCategoriesResponseValidationError) Cause() error
Cause function returns cause value.
func (ListCategoriesResponseValidationError) Error ¶
func (e ListCategoriesResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListCategoriesResponseValidationError) ErrorName ¶
func (e ListCategoriesResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListCategoriesResponseValidationError) Field ¶
func (e ListCategoriesResponseValidationError) Field() string
Field function returns field value.
func (ListCategoriesResponseValidationError) Key ¶
func (e ListCategoriesResponseValidationError) Key() bool
Key function returns key value.
func (ListCategoriesResponseValidationError) Reason ¶
func (e ListCategoriesResponseValidationError) Reason() string
Reason function returns reason value.
type ListTasksFeedRequest ¶
type ListTasksFeedRequest struct {
// contains filtered or unexported fields
}
func (*ListTasksFeedRequest) Descriptor
deprecated
func (*ListTasksFeedRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListTasksFeedRequest.ProtoReflect.Descriptor instead.
func (*ListTasksFeedRequest) ProtoMessage ¶
func (*ListTasksFeedRequest) ProtoMessage()
func (*ListTasksFeedRequest) ProtoReflect ¶
func (x *ListTasksFeedRequest) ProtoReflect() protoreflect.Message
func (*ListTasksFeedRequest) Reset ¶
func (x *ListTasksFeedRequest) Reset()
func (*ListTasksFeedRequest) String ¶
func (x *ListTasksFeedRequest) String() string
func (*ListTasksFeedRequest) Validate ¶
func (m *ListTasksFeedRequest) Validate() error
Validate checks the field values on ListTasksFeedRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ListTasksFeedRequestValidationError ¶
type ListTasksFeedRequestValidationError struct {
// contains filtered or unexported fields
}
ListTasksFeedRequestValidationError is the validation error returned by ListTasksFeedRequest.Validate if the designated constraints aren't met.
func (ListTasksFeedRequestValidationError) Cause ¶
func (e ListTasksFeedRequestValidationError) Cause() error
Cause function returns cause value.
func (ListTasksFeedRequestValidationError) Error ¶
func (e ListTasksFeedRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListTasksFeedRequestValidationError) ErrorName ¶
func (e ListTasksFeedRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListTasksFeedRequestValidationError) Field ¶
func (e ListTasksFeedRequestValidationError) Field() string
Field function returns field value.
func (ListTasksFeedRequestValidationError) Key ¶
func (e ListTasksFeedRequestValidationError) Key() bool
Key function returns key value.
func (ListTasksFeedRequestValidationError) Reason ¶
func (e ListTasksFeedRequestValidationError) Reason() string
Reason function returns reason value.
type ListTasksFeedResponse ¶
type ListTasksFeedResponse struct { // The list of Tasks TaskFeed []*TaskFeed `protobuf:"bytes,1,rep,name=task_feed,json=taskFeed,proto3" json:"task_feed,omitempty"` // contains filtered or unexported fields }
func (*ListTasksFeedResponse) Descriptor
deprecated
func (*ListTasksFeedResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListTasksFeedResponse.ProtoReflect.Descriptor instead.
func (*ListTasksFeedResponse) GetTaskFeed ¶
func (x *ListTasksFeedResponse) GetTaskFeed() []*TaskFeed
func (*ListTasksFeedResponse) ProtoMessage ¶
func (*ListTasksFeedResponse) ProtoMessage()
func (*ListTasksFeedResponse) ProtoReflect ¶
func (x *ListTasksFeedResponse) ProtoReflect() protoreflect.Message
func (*ListTasksFeedResponse) Reset ¶
func (x *ListTasksFeedResponse) Reset()
func (*ListTasksFeedResponse) String ¶
func (x *ListTasksFeedResponse) String() string
func (*ListTasksFeedResponse) Validate ¶
func (m *ListTasksFeedResponse) Validate() error
Validate checks the field values on ListTasksFeedResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ListTasksFeedResponseValidationError ¶
type ListTasksFeedResponseValidationError struct {
// contains filtered or unexported fields
}
ListTasksFeedResponseValidationError is the validation error returned by ListTasksFeedResponse.Validate if the designated constraints aren't met.
func (ListTasksFeedResponseValidationError) Cause ¶
func (e ListTasksFeedResponseValidationError) Cause() error
Cause function returns cause value.
func (ListTasksFeedResponseValidationError) Error ¶
func (e ListTasksFeedResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListTasksFeedResponseValidationError) ErrorName ¶
func (e ListTasksFeedResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListTasksFeedResponseValidationError) Field ¶
func (e ListTasksFeedResponseValidationError) Field() string
Field function returns field value.
func (ListTasksFeedResponseValidationError) Key ¶
func (e ListTasksFeedResponseValidationError) Key() bool
Key function returns key value.
func (ListTasksFeedResponseValidationError) Reason ¶
func (e ListTasksFeedResponseValidationError) Reason() string
Reason function returns reason value.
type ListTasksRequest ¶
type ListTasksRequest struct {
// contains filtered or unexported fields
}
func (*ListTasksRequest) Descriptor
deprecated
func (*ListTasksRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListTasksRequest.ProtoReflect.Descriptor instead.
func (*ListTasksRequest) ProtoMessage ¶
func (*ListTasksRequest) ProtoMessage()
func (*ListTasksRequest) ProtoReflect ¶
func (x *ListTasksRequest) ProtoReflect() protoreflect.Message
func (*ListTasksRequest) Reset ¶
func (x *ListTasksRequest) Reset()
func (*ListTasksRequest) String ¶
func (x *ListTasksRequest) String() string
func (*ListTasksRequest) Validate ¶
func (m *ListTasksRequest) Validate() error
Validate checks the field values on ListTasksRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ListTasksRequestValidationError ¶
type ListTasksRequestValidationError struct {
// contains filtered or unexported fields
}
ListTasksRequestValidationError is the validation error returned by ListTasksRequest.Validate if the designated constraints aren't met.
func (ListTasksRequestValidationError) Cause ¶
func (e ListTasksRequestValidationError) Cause() error
Cause function returns cause value.
func (ListTasksRequestValidationError) Error ¶
func (e ListTasksRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListTasksRequestValidationError) ErrorName ¶
func (e ListTasksRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListTasksRequestValidationError) Field ¶
func (e ListTasksRequestValidationError) Field() string
Field function returns field value.
func (ListTasksRequestValidationError) Key ¶
func (e ListTasksRequestValidationError) Key() bool
Key function returns key value.
func (ListTasksRequestValidationError) Reason ¶
func (e ListTasksRequestValidationError) Reason() string
Reason function returns reason value.
type ListTasksResponse ¶
type ListTasksResponse struct { // The list of Tasks Tasks []*Task `protobuf:"bytes,1,rep,name=tasks,proto3" json:"tasks,omitempty"` // contains filtered or unexported fields }
func (*ListTasksResponse) Descriptor
deprecated
func (*ListTasksResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListTasksResponse.ProtoReflect.Descriptor instead.
func (*ListTasksResponse) GetTasks ¶
func (x *ListTasksResponse) GetTasks() []*Task
func (*ListTasksResponse) ProtoMessage ¶
func (*ListTasksResponse) ProtoMessage()
func (*ListTasksResponse) ProtoReflect ¶
func (x *ListTasksResponse) ProtoReflect() protoreflect.Message
func (*ListTasksResponse) Reset ¶
func (x *ListTasksResponse) Reset()
func (*ListTasksResponse) String ¶
func (x *ListTasksResponse) String() string
func (*ListTasksResponse) Validate ¶
func (m *ListTasksResponse) Validate() error
Validate checks the field values on ListTasksResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ListTasksResponseValidationError ¶
type ListTasksResponseValidationError struct {
// contains filtered or unexported fields
}
ListTasksResponseValidationError is the validation error returned by ListTasksResponse.Validate if the designated constraints aren't met.
func (ListTasksResponseValidationError) Cause ¶
func (e ListTasksResponseValidationError) Cause() error
Cause function returns cause value.
func (ListTasksResponseValidationError) Error ¶
func (e ListTasksResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListTasksResponseValidationError) ErrorName ¶
func (e ListTasksResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListTasksResponseValidationError) Field ¶
func (e ListTasksResponseValidationError) Field() string
Field function returns field value.
func (ListTasksResponseValidationError) Key ¶
func (e ListTasksResponseValidationError) Key() bool
Key function returns key value.
func (ListTasksResponseValidationError) Reason ¶
func (e ListTasksResponseValidationError) Reason() string
Reason function returns reason value.
type ListUsersRequest ¶
type ListUsersRequest struct {
// contains filtered or unexported fields
}
func (*ListUsersRequest) Descriptor
deprecated
func (*ListUsersRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListUsersRequest.ProtoReflect.Descriptor instead.
func (*ListUsersRequest) ProtoMessage ¶
func (*ListUsersRequest) ProtoMessage()
func (*ListUsersRequest) ProtoReflect ¶
func (x *ListUsersRequest) ProtoReflect() protoreflect.Message
func (*ListUsersRequest) Reset ¶
func (x *ListUsersRequest) Reset()
func (*ListUsersRequest) String ¶
func (x *ListUsersRequest) String() string
func (*ListUsersRequest) Validate ¶
func (m *ListUsersRequest) Validate() error
Validate checks the field values on ListUsersRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ListUsersRequestValidationError ¶
type ListUsersRequestValidationError struct {
// contains filtered or unexported fields
}
ListUsersRequestValidationError is the validation error returned by ListUsersRequest.Validate if the designated constraints aren't met.
func (ListUsersRequestValidationError) Cause ¶
func (e ListUsersRequestValidationError) Cause() error
Cause function returns cause value.
func (ListUsersRequestValidationError) Error ¶
func (e ListUsersRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListUsersRequestValidationError) ErrorName ¶
func (e ListUsersRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListUsersRequestValidationError) Field ¶
func (e ListUsersRequestValidationError) Field() string
Field function returns field value.
func (ListUsersRequestValidationError) Key ¶
func (e ListUsersRequestValidationError) Key() bool
Key function returns key value.
func (ListUsersRequestValidationError) Reason ¶
func (e ListUsersRequestValidationError) Reason() string
Reason function returns reason value.
type ListUsersResponse ¶
type ListUsersResponse struct { // The list of Tasks Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
func (*ListUsersResponse) Descriptor
deprecated
func (*ListUsersResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListUsersResponse.ProtoReflect.Descriptor instead.
func (*ListUsersResponse) GetUsers ¶
func (x *ListUsersResponse) GetUsers() []*User
func (*ListUsersResponse) ProtoMessage ¶
func (*ListUsersResponse) ProtoMessage()
func (*ListUsersResponse) ProtoReflect ¶
func (x *ListUsersResponse) ProtoReflect() protoreflect.Message
func (*ListUsersResponse) Reset ¶
func (x *ListUsersResponse) Reset()
func (*ListUsersResponse) String ¶
func (x *ListUsersResponse) String() string
func (*ListUsersResponse) Validate ¶
func (m *ListUsersResponse) Validate() error
Validate checks the field values on ListUsersResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ListUsersResponseValidationError ¶
type ListUsersResponseValidationError struct {
// contains filtered or unexported fields
}
ListUsersResponseValidationError is the validation error returned by ListUsersResponse.Validate if the designated constraints aren't met.
func (ListUsersResponseValidationError) Cause ¶
func (e ListUsersResponseValidationError) Cause() error
Cause function returns cause value.
func (ListUsersResponseValidationError) Error ¶
func (e ListUsersResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListUsersResponseValidationError) ErrorName ¶
func (e ListUsersResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListUsersResponseValidationError) Field ¶
func (e ListUsersResponseValidationError) Field() string
Field function returns field value.
func (ListUsersResponseValidationError) Key ¶
func (e ListUsersResponseValidationError) Key() bool
Key function returns key value.
func (ListUsersResponseValidationError) Reason ¶
func (e ListUsersResponseValidationError) Reason() string
Reason function returns reason value.
type LoginRequest ¶
type LoginRequest struct { // The username to login with Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // The users password. Either this or pin must be specified Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // The users pin. Either this or password must be specified Pin int32 `protobuf:"varint,3,opt,name=pin,proto3" json:"pin,omitempty"` // contains filtered or unexported fields }
func (*LoginRequest) Descriptor
deprecated
func (*LoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) GetPassword ¶
func (x *LoginRequest) GetPassword() string
func (*LoginRequest) GetPin ¶
func (x *LoginRequest) GetPin() int32
func (*LoginRequest) GetUsername ¶
func (x *LoginRequest) GetUsername() string
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) ProtoReflect ¶
func (x *LoginRequest) ProtoReflect() protoreflect.Message
func (*LoginRequest) Reset ¶
func (x *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (x *LoginRequest) String() string
func (*LoginRequest) Validate ¶
func (m *LoginRequest) Validate() error
Validate checks the field values on LoginRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type LoginRequestValidationError ¶
type LoginRequestValidationError struct {
// contains filtered or unexported fields
}
LoginRequestValidationError is the validation error returned by LoginRequest.Validate if the designated constraints aren't met.
func (LoginRequestValidationError) Cause ¶
func (e LoginRequestValidationError) Cause() error
Cause function returns cause value.
func (LoginRequestValidationError) Error ¶
func (e LoginRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LoginRequestValidationError) ErrorName ¶
func (e LoginRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LoginRequestValidationError) Field ¶
func (e LoginRequestValidationError) Field() string
Field function returns field value.
func (LoginRequestValidationError) Key ¶
func (e LoginRequestValidationError) Key() bool
Key function returns key value.
func (LoginRequestValidationError) Reason ¶
func (e LoginRequestValidationError) Reason() string
Reason function returns reason value.
type LoginResponse ¶
type LoginResponse struct { // The authentication token Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*LoginResponse) Descriptor
deprecated
func (*LoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
func (*LoginResponse) GetToken ¶
func (x *LoginResponse) GetToken() string
func (*LoginResponse) ProtoMessage ¶
func (*LoginResponse) ProtoMessage()
func (*LoginResponse) ProtoReflect ¶
func (x *LoginResponse) ProtoReflect() protoreflect.Message
func (*LoginResponse) Reset ¶
func (x *LoginResponse) Reset()
func (*LoginResponse) String ¶
func (x *LoginResponse) String() string
func (*LoginResponse) Validate ¶
func (m *LoginResponse) Validate() error
Validate checks the field values on LoginResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type LoginResponseValidationError ¶
type LoginResponseValidationError struct {
// contains filtered or unexported fields
}
LoginResponseValidationError is the validation error returned by LoginResponse.Validate if the designated constraints aren't met.
func (LoginResponseValidationError) Cause ¶
func (e LoginResponseValidationError) Cause() error
Cause function returns cause value.
func (LoginResponseValidationError) Error ¶
func (e LoginResponseValidationError) Error() string
Error satisfies the builtin error interface
func (LoginResponseValidationError) ErrorName ¶
func (e LoginResponseValidationError) ErrorName() string
ErrorName returns error name.
func (LoginResponseValidationError) Field ¶
func (e LoginResponseValidationError) Field() string
Field function returns field value.
func (LoginResponseValidationError) Key ¶
func (e LoginResponseValidationError) Key() bool
Key function returns key value.
func (LoginResponseValidationError) Reason ¶
func (e LoginResponseValidationError) Reason() string
Reason function returns reason value.
type Task ¶
type Task struct { // The unique identifier of the task Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // The name of the task Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // The description of the task Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // How many points this task is worth Points int32 `protobuf:"varint,4,opt,name=points,proto3" json:"points,omitempty"` // Whether the task is repeatable // defaults to false if not specified IsRepeatable bool `protobuf:"varint,5,opt,name=is_repeatable,json=isRepeatable,proto3" json:"is_repeatable,omitempty"` // Category details for the task Category *Category `protobuf:"bytes,6,opt,name=category,proto3" json:"category,omitempty"` // Assignee details for the task Assignee *User `protobuf:"bytes,7,opt,name=assignee,proto3" json:"assignee,omitempty"` // contains filtered or unexported fields }
func (*Task) Descriptor
deprecated
func (*Task) GetAssignee ¶
func (*Task) GetCategory ¶
func (*Task) GetDescription ¶
func (*Task) GetIsRepeatable ¶
func (*Task) ProtoMessage ¶
func (*Task) ProtoMessage()
func (*Task) ProtoReflect ¶
func (x *Task) ProtoReflect() protoreflect.Message
type TaskFeed ¶
type TaskFeed struct { // The unique identifier of the task feed Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // The associated Task Task *Task `protobuf:"bytes,2,opt,name=task,proto3" json:"task,omitempty"` // Whether the task is complete IsComplete bool `protobuf:"varint,3,opt,name=is_complete,json=isComplete,proto3" json:"is_complete,omitempty"` // Whether the task has been approved as completed IsApproved bool `protobuf:"varint,4,opt,name=is_approved,json=isApproved,proto3" json:"is_approved,omitempty"` // When the task was completed CompletedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=completed_at,json=completedAt,proto3" json:"completed_at,omitempty"` // How many points the task is worth (will either be the same as task or an override value) Points int32 `protobuf:"varint,6,opt,name=points,proto3" json:"points,omitempty"` // Who the task is assigned to AssigneeId *User `protobuf:"bytes,7,opt,name=assignee_id,json=assigneeId,proto3" json:"assignee_id,omitempty"` // contains filtered or unexported fields }
func (*TaskFeed) Descriptor
deprecated
func (*TaskFeed) GetAssigneeId ¶
func (*TaskFeed) GetCompletedAt ¶
func (*TaskFeed) GetIsApproved ¶
func (*TaskFeed) GetIsComplete ¶
func (*TaskFeed) ProtoMessage ¶
func (*TaskFeed) ProtoMessage()
func (*TaskFeed) ProtoReflect ¶
func (x *TaskFeed) ProtoReflect() protoreflect.Message
type TaskFeedValidationError ¶
type TaskFeedValidationError struct {
// contains filtered or unexported fields
}
TaskFeedValidationError is the validation error returned by TaskFeed.Validate if the designated constraints aren't met.
func (TaskFeedValidationError) Cause ¶
func (e TaskFeedValidationError) Cause() error
Cause function returns cause value.
func (TaskFeedValidationError) Error ¶
func (e TaskFeedValidationError) Error() string
Error satisfies the builtin error interface
func (TaskFeedValidationError) ErrorName ¶
func (e TaskFeedValidationError) ErrorName() string
ErrorName returns error name.
func (TaskFeedValidationError) Field ¶
func (e TaskFeedValidationError) Field() string
Field function returns field value.
func (TaskFeedValidationError) Key ¶
func (e TaskFeedValidationError) Key() bool
Key function returns key value.
func (TaskFeedValidationError) Reason ¶
func (e TaskFeedValidationError) Reason() string
Reason function returns reason value.
type TaskValidationError ¶
type TaskValidationError struct {
// contains filtered or unexported fields
}
TaskValidationError is the validation error returned by Task.Validate if the designated constraints aren't met.
func (TaskValidationError) Cause ¶
func (e TaskValidationError) Cause() error
Cause function returns cause value.
func (TaskValidationError) Error ¶
func (e TaskValidationError) Error() string
Error satisfies the builtin error interface
func (TaskValidationError) ErrorName ¶
func (e TaskValidationError) ErrorName() string
ErrorName returns error name.
func (TaskValidationError) Field ¶
func (e TaskValidationError) Field() string
Field function returns field value.
func (TaskValidationError) Key ¶
func (e TaskValidationError) Key() bool
Key function returns key value.
func (TaskValidationError) Reason ¶
func (e TaskValidationError) Reason() string
Reason function returns reason value.
type UnimplementedChoreRewardsServiceServer ¶
type UnimplementedChoreRewardsServiceServer struct { }
UnimplementedChoreRewardsServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedChoreRewardsServiceServer) AddTaskToFeed ¶
func (UnimplementedChoreRewardsServiceServer) AddTaskToFeed(context.Context, *AddTaskToFeedRequest) (*AddTaskToFeedResponse, error)
func (UnimplementedChoreRewardsServiceServer) CreateCategory ¶
func (UnimplementedChoreRewardsServiceServer) CreateCategory(context.Context, *CreateCategoryRequest) (*CreateCategoryResponse, error)
func (UnimplementedChoreRewardsServiceServer) CreateTask ¶
func (UnimplementedChoreRewardsServiceServer) CreateTask(context.Context, *CreateTaskRequest) (*CreateTaskResponse, error)
func (UnimplementedChoreRewardsServiceServer) CreateUser ¶
func (UnimplementedChoreRewardsServiceServer) CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error)
func (UnimplementedChoreRewardsServiceServer) ListCategories ¶
func (UnimplementedChoreRewardsServiceServer) ListCategories(context.Context, *ListCategoriesRequest) (*ListCategoriesResponse, error)
func (UnimplementedChoreRewardsServiceServer) ListTasks ¶
func (UnimplementedChoreRewardsServiceServer) ListTasks(context.Context, *ListTasksRequest) (*ListTasksResponse, error)
func (UnimplementedChoreRewardsServiceServer) ListTasksFeed ¶
func (UnimplementedChoreRewardsServiceServer) ListTasksFeed(context.Context, *ListTasksFeedRequest) (*ListTasksFeedResponse, error)
func (UnimplementedChoreRewardsServiceServer) ListUsers ¶
func (UnimplementedChoreRewardsServiceServer) ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error)
func (UnimplementedChoreRewardsServiceServer) Login ¶
func (UnimplementedChoreRewardsServiceServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
type UnsafeChoreRewardsServiceServer ¶
type UnsafeChoreRewardsServiceServer interface {
// contains filtered or unexported methods
}
UnsafeChoreRewardsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ChoreRewardsServiceServer will result in compilation errors.
type User ¶
type User struct { // The unique identifier of the user Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // The name of the user Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` // The email of the user // optional Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` // Whether the user is an admin // defaults to false if not specified IsAdmin bool `protobuf:"varint,4,opt,name=is_admin,json=isAdmin,proto3" json:"is_admin,omitempty"` // Whether the user is a parent // defauls to false if not specified IsParent bool `protobuf:"varint,5,opt,name=is_parent,json=isParent,proto3" json:"is_parent,omitempty"` // The avatar of the user Avatar string `protobuf:"bytes,6,opt,name=avatar,proto3" json:"avatar,omitempty"` // How many points the user has Points int32 `protobuf:"varint,7,opt,name=points,proto3" json:"points,omitempty"` // The users password Password string `protobuf:"bytes,8,opt,name=password,proto3" json:"password,omitempty"` // An optional pin, to be used instead of username/password Pin int32 `protobuf:"varint,9,opt,name=pin,proto3" json:"pin,omitempty"` // Whether the user is active IsActive bool `protobuf:"varint,10,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetIsActive ¶
func (*User) GetIsAdmin ¶
func (*User) GetIsParent ¶
func (*User) GetPassword ¶
func (*User) GetUsername ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserValidationError ¶
type UserValidationError struct {
// contains filtered or unexported fields
}
UserValidationError is the validation error returned by User.Validate if the designated constraints aren't met.
func (UserValidationError) Cause ¶
func (e UserValidationError) Cause() error
Cause function returns cause value.
func (UserValidationError) Error ¶
func (e UserValidationError) Error() string
Error satisfies the builtin error interface
func (UserValidationError) ErrorName ¶
func (e UserValidationError) ErrorName() string
ErrorName returns error name.
func (UserValidationError) Field ¶
func (e UserValidationError) Field() string
Field function returns field value.
func (UserValidationError) Key ¶
func (e UserValidationError) Key() bool
Key function returns key value.
func (UserValidationError) Reason ¶
func (e UserValidationError) Reason() string
Reason function returns reason value.