project

package module
v0.0.0-...-0579e20 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 22 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_project_entity_proto protoreflect.FileDescriptor
View Source
var File_project_service_proto protoreflect.FileDescriptor

Functions

func RegisterProjectServiceServer

func RegisterProjectServiceServer(s *grpc.Server, srv ProjectServiceServer)

Types

type CreateProjectRequest

type CreateProjectRequest struct {
	UserId uint32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // project owner
	Name   string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateProjectRequest) Descriptor deprecated

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

Deprecated: Use CreateProjectRequest.ProtoReflect.Descriptor instead.

func (*CreateProjectRequest) GetName

func (x *CreateProjectRequest) GetName() string

func (*CreateProjectRequest) GetUserId

func (x *CreateProjectRequest) GetUserId() uint32

func (*CreateProjectRequest) ProtoMessage

func (*CreateProjectRequest) ProtoMessage()

func (*CreateProjectRequest) ProtoReflect

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

func (*CreateProjectRequest) Reset

func (x *CreateProjectRequest) Reset()

func (*CreateProjectRequest) String

func (x *CreateProjectRequest) String() string

func (*CreateProjectRequest) Validate

func (m *CreateProjectRequest) Validate() error

Validate checks the field values on CreateProjectRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateProjectRequest) ValidateAll

func (m *CreateProjectRequest) ValidateAll() error

ValidateAll checks the field values on CreateProjectRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateProjectRequestMultiError, or nil if none found.

type CreateProjectRequestMultiError

type CreateProjectRequestMultiError []error

CreateProjectRequestMultiError is an error wrapping multiple validation errors returned by CreateProjectRequest.ValidateAll() if the designated constraints aren't met.

func (CreateProjectRequestMultiError) AllErrors

func (m CreateProjectRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateProjectRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateProjectRequestValidationError

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

CreateProjectRequestValidationError is the validation error returned by CreateProjectRequest.Validate if the designated constraints aren't met.

func (CreateProjectRequestValidationError) Cause

Cause function returns cause value.

func (CreateProjectRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateProjectRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateProjectRequestValidationError) Field

Field function returns field value.

func (CreateProjectRequestValidationError) Key

Key function returns key value.

func (CreateProjectRequestValidationError) Reason

Reason function returns reason value.

type CreateProjectResponse

type CreateProjectResponse struct {
	Project *Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateProjectResponse) Descriptor deprecated

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

Deprecated: Use CreateProjectResponse.ProtoReflect.Descriptor instead.

func (*CreateProjectResponse) GetProject

func (x *CreateProjectResponse) GetProject() *Project

func (*CreateProjectResponse) ProtoMessage

func (*CreateProjectResponse) ProtoMessage()

func (*CreateProjectResponse) ProtoReflect

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

func (*CreateProjectResponse) Reset

func (x *CreateProjectResponse) Reset()

func (*CreateProjectResponse) String

func (x *CreateProjectResponse) String() string

func (*CreateProjectResponse) Validate

func (m *CreateProjectResponse) Validate() error

Validate checks the field values on CreateProjectResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateProjectResponse) ValidateAll

func (m *CreateProjectResponse) ValidateAll() error

ValidateAll checks the field values on CreateProjectResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateProjectResponseMultiError, or nil if none found.

type CreateProjectResponseMultiError

type CreateProjectResponseMultiError []error

CreateProjectResponseMultiError is an error wrapping multiple validation errors returned by CreateProjectResponse.ValidateAll() if the designated constraints aren't met.

func (CreateProjectResponseMultiError) AllErrors

func (m CreateProjectResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateProjectResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateProjectResponseValidationError

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

CreateProjectResponseValidationError is the validation error returned by CreateProjectResponse.Validate if the designated constraints aren't met.

func (CreateProjectResponseValidationError) Cause

Cause function returns cause value.

func (CreateProjectResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateProjectResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateProjectResponseValidationError) Field

Field function returns field value.

func (CreateProjectResponseValidationError) Key

Key function returns key value.

func (CreateProjectResponseValidationError) Reason

Reason function returns reason value.

type DeleteProjectRequest

type DeleteProjectRequest struct {
	ProjectId uint32 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteProjectRequest) Descriptor deprecated

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

Deprecated: Use DeleteProjectRequest.ProtoReflect.Descriptor instead.

func (*DeleteProjectRequest) GetProjectId

func (x *DeleteProjectRequest) GetProjectId() uint32

func (*DeleteProjectRequest) ProtoMessage

func (*DeleteProjectRequest) ProtoMessage()

func (*DeleteProjectRequest) ProtoReflect

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

func (*DeleteProjectRequest) Reset

func (x *DeleteProjectRequest) Reset()

func (*DeleteProjectRequest) String

func (x *DeleteProjectRequest) String() string

func (*DeleteProjectRequest) Validate

func (m *DeleteProjectRequest) Validate() error

Validate checks the field values on DeleteProjectRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DeleteProjectRequest) ValidateAll

func (m *DeleteProjectRequest) ValidateAll() error

ValidateAll checks the field values on DeleteProjectRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteProjectRequestMultiError, or nil if none found.

type DeleteProjectRequestMultiError

type DeleteProjectRequestMultiError []error

DeleteProjectRequestMultiError is an error wrapping multiple validation errors returned by DeleteProjectRequest.ValidateAll() if the designated constraints aren't met.

func (DeleteProjectRequestMultiError) AllErrors

func (m DeleteProjectRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteProjectRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteProjectRequestValidationError

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

DeleteProjectRequestValidationError is the validation error returned by DeleteProjectRequest.Validate if the designated constraints aren't met.

func (DeleteProjectRequestValidationError) Cause

Cause function returns cause value.

func (DeleteProjectRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteProjectRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteProjectRequestValidationError) Field

Field function returns field value.

func (DeleteProjectRequestValidationError) Key

Key function returns key value.

func (DeleteProjectRequestValidationError) Reason

Reason function returns reason value.

type IsActiveRequest

type IsActiveRequest struct {
	ProjectId uint32 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// contains filtered or unexported fields
}

func (*IsActiveRequest) Descriptor deprecated

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

Deprecated: Use IsActiveRequest.ProtoReflect.Descriptor instead.

func (*IsActiveRequest) GetProjectId

func (x *IsActiveRequest) GetProjectId() uint32

func (*IsActiveRequest) ProtoMessage

func (*IsActiveRequest) ProtoMessage()

func (*IsActiveRequest) ProtoReflect

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

func (*IsActiveRequest) Reset

func (x *IsActiveRequest) Reset()

func (*IsActiveRequest) String

func (x *IsActiveRequest) String() string

func (*IsActiveRequest) Validate

func (m *IsActiveRequest) Validate() error

Validate checks the field values on IsActiveRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*IsActiveRequest) ValidateAll

func (m *IsActiveRequest) ValidateAll() error

ValidateAll checks the field values on IsActiveRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in IsActiveRequestMultiError, or nil if none found.

type IsActiveRequestMultiError

type IsActiveRequestMultiError []error

IsActiveRequestMultiError is an error wrapping multiple validation errors returned by IsActiveRequest.ValidateAll() if the designated constraints aren't met.

func (IsActiveRequestMultiError) AllErrors

func (m IsActiveRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (IsActiveRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type IsActiveRequestValidationError

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

IsActiveRequestValidationError is the validation error returned by IsActiveRequest.Validate if the designated constraints aren't met.

func (IsActiveRequestValidationError) Cause

Cause function returns cause value.

func (IsActiveRequestValidationError) Error

Error satisfies the builtin error interface

func (IsActiveRequestValidationError) ErrorName

func (e IsActiveRequestValidationError) ErrorName() string

ErrorName returns error name.

func (IsActiveRequestValidationError) Field

Field function returns field value.

func (IsActiveRequestValidationError) Key

Key function returns key value.

func (IsActiveRequestValidationError) Reason

Reason function returns reason value.

type IsActiveResponse

type IsActiveResponse struct {
	Active bool `protobuf:"varint,1,opt,name=active,proto3" json:"active,omitempty"`
	// contains filtered or unexported fields
}

func (*IsActiveResponse) Descriptor deprecated

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

Deprecated: Use IsActiveResponse.ProtoReflect.Descriptor instead.

func (*IsActiveResponse) GetActive

func (x *IsActiveResponse) GetActive() bool

func (*IsActiveResponse) ProtoMessage

func (*IsActiveResponse) ProtoMessage()

func (*IsActiveResponse) ProtoReflect

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

func (*IsActiveResponse) Reset

func (x *IsActiveResponse) Reset()

func (*IsActiveResponse) String

func (x *IsActiveResponse) String() string

func (*IsActiveResponse) Validate

func (m *IsActiveResponse) Validate() error

Validate checks the field values on IsActiveResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*IsActiveResponse) ValidateAll

func (m *IsActiveResponse) ValidateAll() error

ValidateAll checks the field values on IsActiveResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in IsActiveResponseMultiError, or nil if none found.

type IsActiveResponseMultiError

type IsActiveResponseMultiError []error

IsActiveResponseMultiError is an error wrapping multiple validation errors returned by IsActiveResponse.ValidateAll() if the designated constraints aren't met.

func (IsActiveResponseMultiError) AllErrors

func (m IsActiveResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (IsActiveResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type IsActiveResponseValidationError

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

IsActiveResponseValidationError is the validation error returned by IsActiveResponse.Validate if the designated constraints aren't met.

func (IsActiveResponseValidationError) Cause

Cause function returns cause value.

func (IsActiveResponseValidationError) Error

Error satisfies the builtin error interface

func (IsActiveResponseValidationError) ErrorName

ErrorName returns error name.

func (IsActiveResponseValidationError) Field

Field function returns field value.

func (IsActiveResponseValidationError) Key

Key function returns key value.

func (IsActiveResponseValidationError) Reason

Reason function returns reason value.

type ListProjectRequest

type ListProjectRequest struct {
	UserId    uint32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	ProjectId uint32 `protobuf:"varint,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Name      string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*ListProjectRequest) Descriptor deprecated

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

Deprecated: Use ListProjectRequest.ProtoReflect.Descriptor instead.

func (*ListProjectRequest) GetName

func (x *ListProjectRequest) GetName() string

func (*ListProjectRequest) GetProjectId

func (x *ListProjectRequest) GetProjectId() uint32

func (*ListProjectRequest) GetUserId

func (x *ListProjectRequest) GetUserId() uint32

func (*ListProjectRequest) ProtoMessage

func (*ListProjectRequest) ProtoMessage()

func (*ListProjectRequest) ProtoReflect

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

func (*ListProjectRequest) Reset

func (x *ListProjectRequest) Reset()

func (*ListProjectRequest) String

func (x *ListProjectRequest) String() string

func (*ListProjectRequest) Validate

func (m *ListProjectRequest) Validate() error

Validate checks the field values on ListProjectRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListProjectRequest) ValidateAll

func (m *ListProjectRequest) ValidateAll() error

ValidateAll checks the field values on ListProjectRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListProjectRequestMultiError, or nil if none found.

type ListProjectRequestMultiError

type ListProjectRequestMultiError []error

ListProjectRequestMultiError is an error wrapping multiple validation errors returned by ListProjectRequest.ValidateAll() if the designated constraints aren't met.

func (ListProjectRequestMultiError) AllErrors

func (m ListProjectRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListProjectRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListProjectRequestValidationError

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

ListProjectRequestValidationError is the validation error returned by ListProjectRequest.Validate if the designated constraints aren't met.

func (ListProjectRequestValidationError) Cause

Cause function returns cause value.

func (ListProjectRequestValidationError) Error

Error satisfies the builtin error interface

func (ListProjectRequestValidationError) ErrorName

ErrorName returns error name.

func (ListProjectRequestValidationError) Field

Field function returns field value.

func (ListProjectRequestValidationError) Key

Key function returns key value.

func (ListProjectRequestValidationError) Reason

Reason function returns reason value.

type ListProjectResponse

type ListProjectResponse struct {
	Project []*Project `protobuf:"bytes,1,rep,name=project,proto3" json:"project,omitempty"`
	// contains filtered or unexported fields
}

func (*ListProjectResponse) Descriptor deprecated

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

Deprecated: Use ListProjectResponse.ProtoReflect.Descriptor instead.

func (*ListProjectResponse) GetProject

func (x *ListProjectResponse) GetProject() []*Project

func (*ListProjectResponse) ProtoMessage

func (*ListProjectResponse) ProtoMessage()

func (*ListProjectResponse) ProtoReflect

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

func (*ListProjectResponse) Reset

func (x *ListProjectResponse) Reset()

func (*ListProjectResponse) String

func (x *ListProjectResponse) String() string

func (*ListProjectResponse) Validate

func (m *ListProjectResponse) Validate() error

Validate checks the field values on ListProjectResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListProjectResponse) ValidateAll

func (m *ListProjectResponse) ValidateAll() error

ValidateAll checks the field values on ListProjectResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListProjectResponseMultiError, or nil if none found.

type ListProjectResponseMultiError

type ListProjectResponseMultiError []error

ListProjectResponseMultiError is an error wrapping multiple validation errors returned by ListProjectResponse.ValidateAll() if the designated constraints aren't met.

func (ListProjectResponseMultiError) AllErrors

func (m ListProjectResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListProjectResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListProjectResponseValidationError

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

ListProjectResponseValidationError is the validation error returned by ListProjectResponse.Validate if the designated constraints aren't met.

func (ListProjectResponseValidationError) Cause

Cause function returns cause value.

func (ListProjectResponseValidationError) Error

Error satisfies the builtin error interface

func (ListProjectResponseValidationError) ErrorName

ErrorName returns error name.

func (ListProjectResponseValidationError) Field

Field function returns field value.

func (ListProjectResponseValidationError) Key

Key function returns key value.

func (ListProjectResponseValidationError) Reason

Reason function returns reason value.

type Project

type Project struct {
	ProjectId uint32        `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Name      string        `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Tag       []*ProjectTag `protobuf:"bytes,3,rep,name=tag,proto3" json:"tag,omitempty"`
	CreatedAt int64         `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt int64         `protobuf:"varint,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

Project

func (*Project) Descriptor deprecated

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

Deprecated: Use Project.ProtoReflect.Descriptor instead.

func (*Project) GetCreatedAt

func (x *Project) GetCreatedAt() int64

func (*Project) GetName

func (x *Project) GetName() string

func (*Project) GetProjectId

func (x *Project) GetProjectId() uint32

func (*Project) GetTag

func (x *Project) GetTag() []*ProjectTag

func (*Project) GetUpdatedAt

func (x *Project) GetUpdatedAt() int64

func (*Project) ProtoMessage

func (*Project) ProtoMessage()

func (*Project) ProtoReflect

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

func (*Project) Reset

func (x *Project) Reset()

func (*Project) String

func (x *Project) String() string

func (*Project) Validate

func (m *Project) Validate() error

Validate checks the field values on Project with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Project) ValidateAll

func (m *Project) ValidateAll() error

ValidateAll checks the field values on Project with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ProjectMultiError, or nil if none found.

type ProjectMultiError

type ProjectMultiError []error

ProjectMultiError is an error wrapping multiple validation errors returned by Project.ValidateAll() if the designated constraints aren't met.

func (ProjectMultiError) AllErrors

func (m ProjectMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ProjectMultiError) Error

func (m ProjectMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ProjectServiceClient

type ProjectServiceClient interface {
	// project
	ListProject(ctx context.Context, in *ListProjectRequest, opts ...grpc.CallOption) (*ListProjectResponse, error)
	CreateProject(ctx context.Context, in *CreateProjectRequest, opts ...grpc.CallOption) (*CreateProjectResponse, error)
	UpdateProject(ctx context.Context, in *UpdateProjectRequest, opts ...grpc.CallOption) (*UpdateProjectResponse, error)
	DeleteProject(ctx context.Context, in *DeleteProjectRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// project_tag
	TagProject(ctx context.Context, in *TagProjectRequest, opts ...grpc.CallOption) (*TagProjectResponse, error)
	UntagProject(ctx context.Context, in *UntagProjectRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	IsActive(ctx context.Context, in *IsActiveRequest, opts ...grpc.CallOption) (*IsActiveResponse, error)
}

ProjectServiceClient is the client API for ProjectService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type ProjectServiceServer

ProjectServiceServer is the server API for ProjectService service.

type ProjectTag

type ProjectTag struct {
	ProjectId uint32 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Tag       string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"`
	Color     string `protobuf:"bytes,3,opt,name=color,proto3" json:"color,omitempty"`
	CreatedAt int64  `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt int64  `protobuf:"varint,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

ProjectTag

func (*ProjectTag) Descriptor deprecated

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

Deprecated: Use ProjectTag.ProtoReflect.Descriptor instead.

func (*ProjectTag) GetColor

func (x *ProjectTag) GetColor() string

func (*ProjectTag) GetCreatedAt

func (x *ProjectTag) GetCreatedAt() int64

func (*ProjectTag) GetProjectId

func (x *ProjectTag) GetProjectId() uint32

func (*ProjectTag) GetTag

func (x *ProjectTag) GetTag() string

func (*ProjectTag) GetUpdatedAt

func (x *ProjectTag) GetUpdatedAt() int64

func (*ProjectTag) ProtoMessage

func (*ProjectTag) ProtoMessage()

func (*ProjectTag) ProtoReflect

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

func (*ProjectTag) Reset

func (x *ProjectTag) Reset()

func (*ProjectTag) String

func (x *ProjectTag) String() string

func (*ProjectTag) Validate

func (m *ProjectTag) Validate() error

Validate checks the field values on ProjectTag with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ProjectTag) ValidateAll

func (m *ProjectTag) ValidateAll() error

ValidateAll checks the field values on ProjectTag with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ProjectTagMultiError, or nil if none found.

type ProjectTagMultiError

type ProjectTagMultiError []error

ProjectTagMultiError is an error wrapping multiple validation errors returned by ProjectTag.ValidateAll() if the designated constraints aren't met.

func (ProjectTagMultiError) AllErrors

func (m ProjectTagMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ProjectTagMultiError) Error

func (m ProjectTagMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ProjectTagValidationError

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

ProjectTagValidationError is the validation error returned by ProjectTag.Validate if the designated constraints aren't met.

func (ProjectTagValidationError) Cause

func (e ProjectTagValidationError) Cause() error

Cause function returns cause value.

func (ProjectTagValidationError) Error

Error satisfies the builtin error interface

func (ProjectTagValidationError) ErrorName

func (e ProjectTagValidationError) ErrorName() string

ErrorName returns error name.

func (ProjectTagValidationError) Field

Field function returns field value.

func (ProjectTagValidationError) Key

Key function returns key value.

func (ProjectTagValidationError) Reason

func (e ProjectTagValidationError) Reason() string

Reason function returns reason value.

type ProjectValidationError

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

ProjectValidationError is the validation error returned by Project.Validate if the designated constraints aren't met.

func (ProjectValidationError) Cause

func (e ProjectValidationError) Cause() error

Cause function returns cause value.

func (ProjectValidationError) Error

func (e ProjectValidationError) Error() string

Error satisfies the builtin error interface

func (ProjectValidationError) ErrorName

func (e ProjectValidationError) ErrorName() string

ErrorName returns error name.

func (ProjectValidationError) Field

func (e ProjectValidationError) Field() string

Field function returns field value.

func (ProjectValidationError) Key

func (e ProjectValidationError) Key() bool

Key function returns key value.

func (ProjectValidationError) Reason

func (e ProjectValidationError) Reason() string

Reason function returns reason value.

type TagProjectRequest

type TagProjectRequest struct {
	ProjectId uint32 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Tag       string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"`
	Color     string `protobuf:"bytes,3,opt,name=color,proto3" json:"color,omitempty"`
	// contains filtered or unexported fields
}

func (*TagProjectRequest) Descriptor deprecated

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

Deprecated: Use TagProjectRequest.ProtoReflect.Descriptor instead.

func (*TagProjectRequest) GetColor

func (x *TagProjectRequest) GetColor() string

func (*TagProjectRequest) GetProjectId

func (x *TagProjectRequest) GetProjectId() uint32

func (*TagProjectRequest) GetTag

func (x *TagProjectRequest) GetTag() string

func (*TagProjectRequest) ProtoMessage

func (*TagProjectRequest) ProtoMessage()

func (*TagProjectRequest) ProtoReflect

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

func (*TagProjectRequest) Reset

func (x *TagProjectRequest) Reset()

func (*TagProjectRequest) String

func (x *TagProjectRequest) String() string

func (*TagProjectRequest) Validate

func (m *TagProjectRequest) Validate() error

Validate checks the field values on TagProjectRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TagProjectRequest) ValidateAll

func (m *TagProjectRequest) ValidateAll() error

ValidateAll checks the field values on TagProjectRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TagProjectRequestMultiError, or nil if none found.

type TagProjectRequestMultiError

type TagProjectRequestMultiError []error

TagProjectRequestMultiError is an error wrapping multiple validation errors returned by TagProjectRequest.ValidateAll() if the designated constraints aren't met.

func (TagProjectRequestMultiError) AllErrors

func (m TagProjectRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TagProjectRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type TagProjectRequestValidationError

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

TagProjectRequestValidationError is the validation error returned by TagProjectRequest.Validate if the designated constraints aren't met.

func (TagProjectRequestValidationError) Cause

Cause function returns cause value.

func (TagProjectRequestValidationError) Error

Error satisfies the builtin error interface

func (TagProjectRequestValidationError) ErrorName

ErrorName returns error name.

func (TagProjectRequestValidationError) Field

Field function returns field value.

func (TagProjectRequestValidationError) Key

Key function returns key value.

func (TagProjectRequestValidationError) Reason

Reason function returns reason value.

type TagProjectResponse

type TagProjectResponse struct {
	ProjectTag *ProjectTag `protobuf:"bytes,1,opt,name=project_tag,json=projectTag,proto3" json:"project_tag,omitempty"`
	// contains filtered or unexported fields
}

func (*TagProjectResponse) Descriptor deprecated

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

Deprecated: Use TagProjectResponse.ProtoReflect.Descriptor instead.

func (*TagProjectResponse) GetProjectTag

func (x *TagProjectResponse) GetProjectTag() *ProjectTag

func (*TagProjectResponse) ProtoMessage

func (*TagProjectResponse) ProtoMessage()

func (*TagProjectResponse) ProtoReflect

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

func (*TagProjectResponse) Reset

func (x *TagProjectResponse) Reset()

func (*TagProjectResponse) String

func (x *TagProjectResponse) String() string

func (*TagProjectResponse) Validate

func (m *TagProjectResponse) Validate() error

Validate checks the field values on TagProjectResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TagProjectResponse) ValidateAll

func (m *TagProjectResponse) ValidateAll() error

ValidateAll checks the field values on TagProjectResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TagProjectResponseMultiError, or nil if none found.

type TagProjectResponseMultiError

type TagProjectResponseMultiError []error

TagProjectResponseMultiError is an error wrapping multiple validation errors returned by TagProjectResponse.ValidateAll() if the designated constraints aren't met.

func (TagProjectResponseMultiError) AllErrors

func (m TagProjectResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TagProjectResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type TagProjectResponseValidationError

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

TagProjectResponseValidationError is the validation error returned by TagProjectResponse.Validate if the designated constraints aren't met.

func (TagProjectResponseValidationError) Cause

Cause function returns cause value.

func (TagProjectResponseValidationError) Error

Error satisfies the builtin error interface

func (TagProjectResponseValidationError) ErrorName

ErrorName returns error name.

func (TagProjectResponseValidationError) Field

Field function returns field value.

func (TagProjectResponseValidationError) Key

Key function returns key value.

func (TagProjectResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedProjectServiceServer

type UnimplementedProjectServiceServer struct {
}

UnimplementedProjectServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedProjectServiceServer) CreateProject

func (*UnimplementedProjectServiceServer) DeleteProject

func (*UnimplementedProjectServiceServer) IsActive

func (*UnimplementedProjectServiceServer) ListProject

func (*UnimplementedProjectServiceServer) TagProject

func (*UnimplementedProjectServiceServer) UntagProject

func (*UnimplementedProjectServiceServer) UpdateProject

type UntagProjectRequest

type UntagProjectRequest struct {
	ProjectId uint32 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Tag       string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"`
	// contains filtered or unexported fields
}

func (*UntagProjectRequest) Descriptor deprecated

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

Deprecated: Use UntagProjectRequest.ProtoReflect.Descriptor instead.

func (*UntagProjectRequest) GetProjectId

func (x *UntagProjectRequest) GetProjectId() uint32

func (*UntagProjectRequest) GetTag

func (x *UntagProjectRequest) GetTag() string

func (*UntagProjectRequest) ProtoMessage

func (*UntagProjectRequest) ProtoMessage()

func (*UntagProjectRequest) ProtoReflect

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

func (*UntagProjectRequest) Reset

func (x *UntagProjectRequest) Reset()

func (*UntagProjectRequest) String

func (x *UntagProjectRequest) String() string

func (*UntagProjectRequest) Validate

func (m *UntagProjectRequest) Validate() error

Validate checks the field values on UntagProjectRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UntagProjectRequest) ValidateAll

func (m *UntagProjectRequest) ValidateAll() error

ValidateAll checks the field values on UntagProjectRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UntagProjectRequestMultiError, or nil if none found.

type UntagProjectRequestMultiError

type UntagProjectRequestMultiError []error

UntagProjectRequestMultiError is an error wrapping multiple validation errors returned by UntagProjectRequest.ValidateAll() if the designated constraints aren't met.

func (UntagProjectRequestMultiError) AllErrors

func (m UntagProjectRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UntagProjectRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UntagProjectRequestValidationError

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

UntagProjectRequestValidationError is the validation error returned by UntagProjectRequest.Validate if the designated constraints aren't met.

func (UntagProjectRequestValidationError) Cause

Cause function returns cause value.

func (UntagProjectRequestValidationError) Error

Error satisfies the builtin error interface

func (UntagProjectRequestValidationError) ErrorName

ErrorName returns error name.

func (UntagProjectRequestValidationError) Field

Field function returns field value.

func (UntagProjectRequestValidationError) Key

Key function returns key value.

func (UntagProjectRequestValidationError) Reason

Reason function returns reason value.

type UpdateProjectRequest

type UpdateProjectRequest struct {
	ProjectId uint32 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateProjectRequest) Descriptor deprecated

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

Deprecated: Use UpdateProjectRequest.ProtoReflect.Descriptor instead.

func (*UpdateProjectRequest) GetName

func (x *UpdateProjectRequest) GetName() string

func (*UpdateProjectRequest) GetProjectId

func (x *UpdateProjectRequest) GetProjectId() uint32

func (*UpdateProjectRequest) ProtoMessage

func (*UpdateProjectRequest) ProtoMessage()

func (*UpdateProjectRequest) ProtoReflect

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

func (*UpdateProjectRequest) Reset

func (x *UpdateProjectRequest) Reset()

func (*UpdateProjectRequest) String

func (x *UpdateProjectRequest) String() string

func (*UpdateProjectRequest) Validate

func (m *UpdateProjectRequest) Validate() error

Validate checks the field values on UpdateProjectRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateProjectRequest) ValidateAll

func (m *UpdateProjectRequest) ValidateAll() error

ValidateAll checks the field values on UpdateProjectRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateProjectRequestMultiError, or nil if none found.

type UpdateProjectRequestMultiError

type UpdateProjectRequestMultiError []error

UpdateProjectRequestMultiError is an error wrapping multiple validation errors returned by UpdateProjectRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateProjectRequestMultiError) AllErrors

func (m UpdateProjectRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateProjectRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateProjectRequestValidationError

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

UpdateProjectRequestValidationError is the validation error returned by UpdateProjectRequest.Validate if the designated constraints aren't met.

func (UpdateProjectRequestValidationError) Cause

Cause function returns cause value.

func (UpdateProjectRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateProjectRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateProjectRequestValidationError) Field

Field function returns field value.

func (UpdateProjectRequestValidationError) Key

Key function returns key value.

func (UpdateProjectRequestValidationError) Reason

Reason function returns reason value.

type UpdateProjectResponse

type UpdateProjectResponse struct {
	Project *Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateProjectResponse) Descriptor deprecated

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

Deprecated: Use UpdateProjectResponse.ProtoReflect.Descriptor instead.

func (*UpdateProjectResponse) GetProject

func (x *UpdateProjectResponse) GetProject() *Project

func (*UpdateProjectResponse) ProtoMessage

func (*UpdateProjectResponse) ProtoMessage()

func (*UpdateProjectResponse) ProtoReflect

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

func (*UpdateProjectResponse) Reset

func (x *UpdateProjectResponse) Reset()

func (*UpdateProjectResponse) String

func (x *UpdateProjectResponse) String() string

func (*UpdateProjectResponse) Validate

func (m *UpdateProjectResponse) Validate() error

Validate checks the field values on UpdateProjectResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateProjectResponse) ValidateAll

func (m *UpdateProjectResponse) ValidateAll() error

ValidateAll checks the field values on UpdateProjectResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateProjectResponseMultiError, or nil if none found.

type UpdateProjectResponseMultiError

type UpdateProjectResponseMultiError []error

UpdateProjectResponseMultiError is an error wrapping multiple validation errors returned by UpdateProjectResponse.ValidateAll() if the designated constraints aren't met.

func (UpdateProjectResponseMultiError) AllErrors

func (m UpdateProjectResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateProjectResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateProjectResponseValidationError

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

UpdateProjectResponseValidationError is the validation error returned by UpdateProjectResponse.Validate if the designated constraints aren't met.

func (UpdateProjectResponseValidationError) Cause

Cause function returns cause value.

func (UpdateProjectResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateProjectResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateProjectResponseValidationError) Field

Field function returns field value.

func (UpdateProjectResponseValidationError) Key

Key function returns key value.

func (UpdateProjectResponseValidationError) Reason

Reason function returns reason value.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL