chorerewardsv1alpha1

package
Version: v0.0.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2021 License: GPL-3.0 Imports: 30 Imported by: 1

Documentation

Overview

Package chorerewardsv1alpha1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
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

This method has been 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

Cause function returns cause value.

func (AddTaskToFeedRequestValidationError) Error

Error satisfies the builtin error interface

func (AddTaskToFeedRequestValidationError) ErrorName

ErrorName returns error name.

func (AddTaskToFeedRequestValidationError) Field

Field function returns field value.

func (AddTaskToFeedRequestValidationError) Key

Key function returns key value.

func (AddTaskToFeedRequestValidationError) Reason

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

This method has been 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

Cause function returns cause value.

func (AddTaskToFeedResponseValidationError) Error

Error satisfies the builtin error interface

func (AddTaskToFeedResponseValidationError) ErrorName

ErrorName returns error name.

func (AddTaskToFeedResponseValidationError) Field

Field function returns field value.

func (AddTaskToFeedResponseValidationError) Key

Key function returns key value.

func (AddTaskToFeedResponseValidationError) Reason

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"`
	// contains filtered or unexported fields
}

func (*Category) Descriptor deprecated

This method has been deprecated.
func (*Category) Descriptor() ([]byte, []int)

Deprecated: Use Category.ProtoReflect.Descriptor instead.

func (*Category) GetColor

func (x *Category) GetColor() string

func (*Category) GetDescription

func (x *Category) GetDescription() string

func (*Category) GetId

func (x *Category) GetId() int32

func (*Category) GetName

func (x *Category) GetName() string

func (*Category) ProtoMessage

func (*Category) ProtoMessage()

func (*Category) ProtoReflect

func (x *Category) ProtoReflect() protoreflect.Message

func (*Category) Reset

func (x *Category) Reset()

func (*Category) String

func (x *Category) String() string

func (*Category) Validate

func (m *Category) Validate() error

Validate checks the field values on Category with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

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.

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

This method has been 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

Cause function returns cause value.

func (CreateCategoryRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateCategoryRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateCategoryRequestValidationError) Field

Field function returns field value.

func (CreateCategoryRequestValidationError) Key

Key function returns key value.

func (CreateCategoryRequestValidationError) Reason

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

This method has been 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

Cause function returns cause value.

func (CreateCategoryResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateCategoryResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateCategoryResponseValidationError) Field

Field function returns field value.

func (CreateCategoryResponseValidationError) Key

Key function returns key value.

func (CreateCategoryResponseValidationError) Reason

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

This method has been 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

Cause function returns cause value.

func (CreateTaskRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateTaskRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateTaskRequestValidationError) Field

Field function returns field value.

func (CreateTaskRequestValidationError) Key

Key function returns key value.

func (CreateTaskRequestValidationError) Reason

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

This method has been 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

Cause function returns cause value.

func (CreateTaskResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateTaskResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateTaskResponseValidationError) Field

Field function returns field value.

func (CreateTaskResponseValidationError) Key

Key function returns key value.

func (CreateTaskResponseValidationError) Reason

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

This method has been 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

Cause function returns cause value.

func (CreateUserRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateUserRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateUserRequestValidationError) Field

Field function returns field value.

func (CreateUserRequestValidationError) Key

Key function returns key value.

func (CreateUserRequestValidationError) Reason

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

This method has been 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

Cause function returns cause value.

func (CreateUserResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateUserResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateUserResponseValidationError) Field

Field function returns field value.

func (CreateUserResponseValidationError) Key

Key function returns key value.

func (CreateUserResponseValidationError) Reason

Reason function returns reason value.

type ListCategoriesRequest

type ListCategoriesRequest struct {
	// contains filtered or unexported fields
}

func (*ListCategoriesRequest) Descriptor deprecated

This method has been 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

Cause function returns cause value.

func (ListCategoriesRequestValidationError) Error

Error satisfies the builtin error interface

func (ListCategoriesRequestValidationError) ErrorName

ErrorName returns error name.

func (ListCategoriesRequestValidationError) Field

Field function returns field value.

func (ListCategoriesRequestValidationError) Key

Key function returns key value.

func (ListCategoriesRequestValidationError) Reason

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

This method has been 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

Cause function returns cause value.

func (ListCategoriesResponseValidationError) Error

Error satisfies the builtin error interface

func (ListCategoriesResponseValidationError) ErrorName

ErrorName returns error name.

func (ListCategoriesResponseValidationError) Field

Field function returns field value.

func (ListCategoriesResponseValidationError) Key

Key function returns key value.

func (ListCategoriesResponseValidationError) Reason

Reason function returns reason value.

type ListTasksFeedRequest

type ListTasksFeedRequest struct {
	// contains filtered or unexported fields
}

func (*ListTasksFeedRequest) Descriptor deprecated

This method has been 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

Cause function returns cause value.

func (ListTasksFeedRequestValidationError) Error

Error satisfies the builtin error interface

func (ListTasksFeedRequestValidationError) ErrorName

ErrorName returns error name.

func (ListTasksFeedRequestValidationError) Field

Field function returns field value.

func (ListTasksFeedRequestValidationError) Key

Key function returns key value.

func (ListTasksFeedRequestValidationError) Reason

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

This method has been 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

Cause function returns cause value.

func (ListTasksFeedResponseValidationError) Error

Error satisfies the builtin error interface

func (ListTasksFeedResponseValidationError) ErrorName

ErrorName returns error name.

func (ListTasksFeedResponseValidationError) Field

Field function returns field value.

func (ListTasksFeedResponseValidationError) Key

Key function returns key value.

func (ListTasksFeedResponseValidationError) Reason

Reason function returns reason value.

type ListTasksRequest

type ListTasksRequest struct {
	// contains filtered or unexported fields
}

func (*ListTasksRequest) Descriptor deprecated

This method has been 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

Cause function returns cause value.

func (ListTasksRequestValidationError) Error

Error satisfies the builtin error interface

func (ListTasksRequestValidationError) ErrorName

ErrorName returns error name.

func (ListTasksRequestValidationError) Field

Field function returns field value.

func (ListTasksRequestValidationError) Key

Key function returns key value.

func (ListTasksRequestValidationError) Reason

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

This method has been 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

Cause function returns cause value.

func (ListTasksResponseValidationError) Error

Error satisfies the builtin error interface

func (ListTasksResponseValidationError) ErrorName

ErrorName returns error name.

func (ListTasksResponseValidationError) Field

Field function returns field value.

func (ListTasksResponseValidationError) Key

Key function returns key value.

func (ListTasksResponseValidationError) Reason

Reason function returns reason value.

type ListUsersRequest

type ListUsersRequest struct {
	// contains filtered or unexported fields
}

func (*ListUsersRequest) Descriptor deprecated

This method has been 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

Cause function returns cause value.

func (ListUsersRequestValidationError) Error

Error satisfies the builtin error interface

func (ListUsersRequestValidationError) ErrorName

ErrorName returns error name.

func (ListUsersRequestValidationError) Field

Field function returns field value.

func (ListUsersRequestValidationError) Key

Key function returns key value.

func (ListUsersRequestValidationError) Reason

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

This method has been 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

Cause function returns cause value.

func (ListUsersResponseValidationError) Error

Error satisfies the builtin error interface

func (ListUsersResponseValidationError) ErrorName

ErrorName returns error name.

func (ListUsersResponseValidationError) Field

Field function returns field value.

func (ListUsersResponseValidationError) Key

Key function returns key value.

func (ListUsersResponseValidationError) Reason

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

This method has been 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

Cause function returns cause value.

func (LoginRequestValidationError) Error

Error satisfies the builtin error interface

func (LoginRequestValidationError) ErrorName

func (e LoginRequestValidationError) ErrorName() string

ErrorName returns error name.

func (LoginRequestValidationError) Field

Field function returns field value.

func (LoginRequestValidationError) Key

Key function returns key value.

func (LoginRequestValidationError) Reason

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"`
	// Whether the user is an admin
	IsAdmin bool `protobuf:"varint,2,opt,name=is_admin,json=isAdmin,proto3" json:"is_admin,omitempty"`
	// Whether the user is a parent
	IsParent bool `protobuf:"varint,3,opt,name=is_parent,json=isParent,proto3" json:"is_parent,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginResponse) Descriptor deprecated

This method has been deprecated.
func (*LoginResponse) Descriptor() ([]byte, []int)

Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.

func (*LoginResponse) GetIsAdmin added in v0.0.19

func (x *LoginResponse) GetIsAdmin() bool

func (*LoginResponse) GetIsParent added in v0.0.19

func (x *LoginResponse) GetIsParent() bool

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

Cause function returns cause value.

func (LoginResponseValidationError) Error

Error satisfies the builtin error interface

func (LoginResponseValidationError) ErrorName

func (e LoginResponseValidationError) ErrorName() string

ErrorName returns error name.

func (LoginResponseValidationError) Field

Field function returns field value.

func (LoginResponseValidationError) Key

Key function returns key value.

func (LoginResponseValidationError) Reason

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"`
	// The unique identifier of the associated Category
	CategoryId int32 `protobuf:"varint,6,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"`
	// The unique identifier of the default asignee
	AssigneeId int32 `protobuf:"varint,7,opt,name=assignee_id,json=assigneeId,proto3" json:"assignee_id,omitempty"`
	// contains filtered or unexported fields
}

func (*Task) Descriptor deprecated

This method has been deprecated.
func (*Task) Descriptor() ([]byte, []int)

Deprecated: Use Task.ProtoReflect.Descriptor instead.

func (*Task) GetAssigneeId added in v0.0.18

func (x *Task) GetAssigneeId() int32

func (*Task) GetCategoryId added in v0.0.18

func (x *Task) GetCategoryId() int32

func (*Task) GetDescription

func (x *Task) GetDescription() string

func (*Task) GetId

func (x *Task) GetId() int32

func (*Task) GetIsRepeatable

func (x *Task) GetIsRepeatable() bool

func (*Task) GetName

func (x *Task) GetName() string

func (*Task) GetPoints

func (x *Task) GetPoints() int32

func (*Task) ProtoMessage

func (*Task) ProtoMessage()

func (*Task) ProtoReflect

func (x *Task) ProtoReflect() protoreflect.Message

func (*Task) Reset

func (x *Task) Reset()

func (*Task) String

func (x *Task) String() string

func (*Task) Validate

func (m *Task) Validate() error

Validate checks the field values on Task with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

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 unique identifier of the associated Task
	TaskId int32 `protobuf:"varint,2,opt,name=task_id,json=taskId,proto3" json:"task_id,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"`
	// The unique identifier of the associated user
	AssigneeId int32 `protobuf:"varint,7,opt,name=assignee_id,json=assigneeId,proto3" json:"assignee_id,omitempty"`
	// contains filtered or unexported fields
}

func (*TaskFeed) Descriptor deprecated

This method has been deprecated.
func (*TaskFeed) Descriptor() ([]byte, []int)

Deprecated: Use TaskFeed.ProtoReflect.Descriptor instead.

func (*TaskFeed) GetAssigneeId

func (x *TaskFeed) GetAssigneeId() int32

func (*TaskFeed) GetCompletedAt

func (x *TaskFeed) GetCompletedAt() *timestamp.Timestamp

func (*TaskFeed) GetId

func (x *TaskFeed) GetId() int32

func (*TaskFeed) GetIsApproved

func (x *TaskFeed) GetIsApproved() bool

func (*TaskFeed) GetIsComplete

func (x *TaskFeed) GetIsComplete() bool

func (*TaskFeed) GetPoints

func (x *TaskFeed) GetPoints() int32

func (*TaskFeed) GetTaskId added in v0.0.16

func (x *TaskFeed) GetTaskId() int32

func (*TaskFeed) ProtoMessage

func (*TaskFeed) ProtoMessage()

func (*TaskFeed) ProtoReflect

func (x *TaskFeed) ProtoReflect() protoreflect.Message

func (*TaskFeed) Reset

func (x *TaskFeed) Reset()

func (*TaskFeed) String

func (x *TaskFeed) String() string

func (*TaskFeed) Validate

func (m *TaskFeed) Validate() error

Validate checks the field values on TaskFeed with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

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) CreateCategory

func (UnimplementedChoreRewardsServiceServer) CreateTask

func (UnimplementedChoreRewardsServiceServer) CreateUser

func (UnimplementedChoreRewardsServiceServer) ListCategories

func (UnimplementedChoreRewardsServiceServer) ListTasks

func (UnimplementedChoreRewardsServiceServer) ListTasksFeed

func (UnimplementedChoreRewardsServiceServer) ListUsers

func (UnimplementedChoreRewardsServiceServer) Login

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

This method has been deprecated.
func (*User) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAvatar

func (x *User) GetAvatar() string

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetId

func (x *User) GetId() int32

func (*User) GetIsActive

func (x *User) GetIsActive() bool

func (*User) GetIsAdmin

func (x *User) GetIsAdmin() bool

func (*User) GetIsParent

func (x *User) GetIsParent() bool

func (*User) GetPassword

func (x *User) GetPassword() string

func (*User) GetPin

func (x *User) GetPin() int32

func (*User) GetPoints

func (x *User) GetPoints() int32

func (*User) GetUsername

func (x *User) GetUsername() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

func (*User) Validate

func (m *User) Validate() error

Validate checks the field values on User with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL