chorerewardsv1alpha1

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: GPL-3.0 Imports: 30 Imported by: 0

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 added in v0.0.7

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

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

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"`
	// 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) 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) GetOwner

func (x *Category) GetOwner() *User

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 added in v0.0.7

type ChoreRewardsServiceClient interface {
	// ListUsers
	//
	// Lists Users
	ListUsers(ctx context.Context, in *ListUsersRequest, opts ...grpc.CallOption) (*ListUsersResponse, error)
	// ListCategories
	//
	// Lists Categories
	ListCategories(ctx context.Context, in *ListCategoriesRequest, opts ...grpc.CallOption) (*ListCategoriesResponse, error)
	// ListTasks
	//
	// Lists Tasks
	ListTasks(ctx context.Context, in *ListTasksRequest, opts ...grpc.CallOption) (*ListTasksResponse, 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)
	// CreateCategory
	//
	// Creates a new Category
	CreateCategory(ctx context.Context, in *CreateCategoryRequest, opts ...grpc.CallOption) (*CreateCategoryResponse, error)
	// CreateTask
	//
	// Creates a new Task
	CreateTask(ctx context.Context, in *CreateTaskRequest, opts ...grpc.CallOption) (*CreateTaskResponse, error)
	// AddTaskToFeed
	//
	// Adds a Task to the TaskFeed
	AddTaskToFeed(ctx context.Context, in *AddTaskToFeedRequest, opts ...grpc.CallOption) (*AddTaskToFeedResponse, 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 added in v0.0.7

func NewChoreRewardsServiceClient(cc grpc.ClientConnInterface) ChoreRewardsServiceClient

type ChoreRewardsServiceServer added in v0.0.7

type ChoreRewardsServiceServer interface {
	// ListUsers
	//
	// Lists Users
	ListUsers(context.Context, *ListUsersRequest) (*ListUsersResponse, error)
	// ListCategories
	//
	// Lists Categories
	ListCategories(context.Context, *ListCategoriesRequest) (*ListCategoriesResponse, error)
	// ListTasks
	//
	// Lists Tasks
	ListTasks(context.Context, *ListTasksRequest) (*ListTasksResponse, error)
	// ListTasksFeed
	//
	// Lists Tasks Feed
	ListTasksFeed(context.Context, *ListTasksFeedRequest) (*ListTasksFeedResponse, error)
	// CreateUser
	//
	// Creates a new User
	CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error)
	// CreateCategory
	//
	// Creates a new Category
	CreateCategory(context.Context, *CreateCategoryRequest) (*CreateCategoryResponse, error)
	// CreateTask
	//
	// Creates a new Task
	CreateTask(context.Context, *CreateTaskRequest) (*CreateTaskResponse, error)
	// AddTaskToFeed
	//
	// Adds a Task to the TaskFeed
	AddTaskToFeed(context.Context, *AddTaskToFeedRequest) (*AddTaskToFeedResponse, 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

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

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

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

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

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

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 {

	// The maximum number of items to return.
	PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// The next_page_token value returned from a previous List request, if any.
	PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCategoriesRequest) Descriptor deprecated

func (*ListCategoriesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListCategoriesRequest.ProtoReflect.Descriptor instead.

func (*ListCategoriesRequest) GetPageSize

func (x *ListCategoriesRequest) GetPageSize() int32

func (*ListCategoriesRequest) GetPageToken

func (x *ListCategoriesRequest) GetPageToken() string

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"`
	// Token to retrieve the next page of results, or empty if there are no more
	// results in the list.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,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) GetNextPageToken

func (x *ListCategoriesResponse) GetNextPageToken() string

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 {

	// The maximum number of items to return.
	PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// The next_page_token value returned from a previous List request, if any.
	PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTasksFeedRequest) Descriptor deprecated

func (*ListTasksFeedRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListTasksFeedRequest.ProtoReflect.Descriptor instead.

func (*ListTasksFeedRequest) GetPageSize

func (x *ListTasksFeedRequest) GetPageSize() int32

func (*ListTasksFeedRequest) GetPageToken

func (x *ListTasksFeedRequest) GetPageToken() string

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"`
	// Token to retrieve the next page of results, or empty if there are no more
	// results in the list.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTasksFeedResponse) Descriptor deprecated

func (*ListTasksFeedResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListTasksFeedResponse.ProtoReflect.Descriptor instead.

func (*ListTasksFeedResponse) GetNextPageToken

func (x *ListTasksFeedResponse) GetNextPageToken() string

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 {

	// The maximum number of items to return.
	PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// The next_page_token value returned from a previous List request, if any.
	PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTasksRequest) Descriptor deprecated

func (*ListTasksRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListTasksRequest.ProtoReflect.Descriptor instead.

func (*ListTasksRequest) GetPageSize

func (x *ListTasksRequest) GetPageSize() int32

func (*ListTasksRequest) GetPageToken

func (x *ListTasksRequest) GetPageToken() string

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"`
	// Token to retrieve the next page of results, or empty if there are no more
	// results in the list.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTasksResponse) Descriptor deprecated

func (*ListTasksResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListTasksResponse.ProtoReflect.Descriptor instead.

func (*ListTasksResponse) GetNextPageToken

func (x *ListTasksResponse) GetNextPageToken() string

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 {

	// The maximum number of items to return.
	PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// The next_page_token value returned from a previous List request, if any.
	PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUsersRequest) Descriptor deprecated

func (*ListUsersRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListUsersRequest.ProtoReflect.Descriptor instead.

func (*ListUsersRequest) GetPageSize

func (x *ListUsersRequest) GetPageSize() int32

func (*ListUsersRequest) GetPageToken

func (x *ListUsersRequest) GetPageToken() string

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"`
	// Token to retrieve the next page of results, or empty if there are no more
	// results in the list.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUsersResponse) Descriptor deprecated

func (*ListUsersResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListUsersResponse.ProtoReflect.Descriptor instead.

func (*ListUsersResponse) GetNextPageToken

func (x *ListUsersResponse) GetNextPageToken() string

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 added in v0.0.9

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 added in v0.0.9

func (*LoginRequest) Descriptor() ([]byte, []int)

Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.

func (*LoginRequest) GetPassword added in v0.0.9

func (x *LoginRequest) GetPassword() string

func (*LoginRequest) GetPin added in v0.0.9

func (x *LoginRequest) GetPin() int32

func (*LoginRequest) GetUsername added in v0.0.9

func (x *LoginRequest) GetUsername() string

func (*LoginRequest) ProtoMessage added in v0.0.9

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) ProtoReflect added in v0.0.9

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

func (*LoginRequest) Reset added in v0.0.9

func (x *LoginRequest) Reset()

func (*LoginRequest) String added in v0.0.9

func (x *LoginRequest) String() string

func (*LoginRequest) Validate added in v0.0.9

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 added in v0.0.9

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 added in v0.0.9

Cause function returns cause value.

func (LoginRequestValidationError) Error added in v0.0.9

Error satisfies the builtin error interface

func (LoginRequestValidationError) ErrorName added in v0.0.9

func (e LoginRequestValidationError) ErrorName() string

ErrorName returns error name.

func (LoginRequestValidationError) Field added in v0.0.9

Field function returns field value.

func (LoginRequestValidationError) Key added in v0.0.9

Key function returns key value.

func (LoginRequestValidationError) Reason added in v0.0.9

Reason function returns reason value.

type LoginResponse added in v0.0.9

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 added in v0.0.9

func (*LoginResponse) Descriptor() ([]byte, []int)

Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.

func (*LoginResponse) GetToken added in v0.0.9

func (x *LoginResponse) GetToken() string

func (*LoginResponse) ProtoMessage added in v0.0.9

func (*LoginResponse) ProtoMessage()

func (*LoginResponse) ProtoReflect added in v0.0.9

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

func (*LoginResponse) Reset added in v0.0.9

func (x *LoginResponse) Reset()

func (*LoginResponse) String added in v0.0.9

func (x *LoginResponse) String() string

func (*LoginResponse) Validate added in v0.0.9

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 added in v0.0.9

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 added in v0.0.9

Cause function returns cause value.

func (LoginResponseValidationError) Error added in v0.0.9

Error satisfies the builtin error interface

func (LoginResponseValidationError) ErrorName added in v0.0.9

func (e LoginResponseValidationError) ErrorName() string

ErrorName returns error name.

func (LoginResponseValidationError) Field added in v0.0.9

Field function returns field value.

func (LoginResponseValidationError) Key added in v0.0.9

Key function returns key value.

func (LoginResponseValidationError) Reason added in v0.0.9

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) Descriptor() ([]byte, []int)

Deprecated: Use Task.ProtoReflect.Descriptor instead.

func (*Task) GetAssignee

func (x *Task) GetAssignee() *User

func (*Task) GetCategory

func (x *Task) GetCategory() *Category

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 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) Descriptor() ([]byte, []int)

Deprecated: Use TaskFeed.ProtoReflect.Descriptor instead.

func (*TaskFeed) GetAssigneeId

func (x *TaskFeed) GetAssigneeId() *User

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

func (x *TaskFeed) GetTask() *Task

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 added in v0.0.7

type UnimplementedChoreRewardsServiceServer struct {
}

UnimplementedChoreRewardsServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedChoreRewardsServiceServer) AddTaskToFeed added in v0.0.7

func (UnimplementedChoreRewardsServiceServer) CreateCategory added in v0.0.7

func (UnimplementedChoreRewardsServiceServer) CreateTask added in v0.0.7

func (UnimplementedChoreRewardsServiceServer) CreateUser added in v0.0.7

func (UnimplementedChoreRewardsServiceServer) ListCategories added in v0.0.7

func (UnimplementedChoreRewardsServiceServer) ListTasks added in v0.0.7

func (UnimplementedChoreRewardsServiceServer) ListTasksFeed added in v0.0.7

func (UnimplementedChoreRewardsServiceServer) ListUsers added in v0.0.7

func (UnimplementedChoreRewardsServiceServer) Login added in v0.0.9

type UnsafeChoreRewardsServiceServer added in v0.0.8

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) 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
y or Y : Canonical URL