Documentation
¶
Index ¶
- Variables
- func RegisterProjectServiceServer(s *grpc.Server, srv ProjectServiceServer)
- type CreateProjectRequest
- func (*CreateProjectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateProjectRequest) GetProject() *Project
- func (*CreateProjectRequest) ProtoMessage()
- func (x *CreateProjectRequest) ProtoReflect() protoreflect.Message
- func (x *CreateProjectRequest) Reset()
- func (x *CreateProjectRequest) String() string
- type CreateProjectResponse
- func (*CreateProjectResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateProjectResponse) GetCursor() string
- func (x *CreateProjectResponse) GetError() Error
- func (x *CreateProjectResponse) GetErrorMessage() string
- func (x *CreateProjectResponse) GetProject() *Project
- func (x *CreateProjectResponse) GetProjectID() string
- func (*CreateProjectResponse) ProtoMessage()
- func (x *CreateProjectResponse) ProtoReflect() protoreflect.Message
- func (x *CreateProjectResponse) Reset()
- func (x *CreateProjectResponse) String() string
- type DeleteProjectRequest
- func (*DeleteProjectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteProjectRequest) GetProjectID() string
- func (*DeleteProjectRequest) ProtoMessage()
- func (x *DeleteProjectRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteProjectRequest) Reset()
- func (x *DeleteProjectRequest) String() string
- type DeleteProjectResponse
- func (*DeleteProjectResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteProjectResponse) GetError() Error
- func (x *DeleteProjectResponse) GetErrorMessage() string
- func (*DeleteProjectResponse) ProtoMessage()
- func (x *DeleteProjectResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteProjectResponse) Reset()
- func (x *DeleteProjectResponse) String() string
- type Error
- type Pagination
- func (*Pagination) Descriptor() ([]byte, []int)deprecated
- func (x *Pagination) GetAfter() string
- func (x *Pagination) GetBefore() string
- func (x *Pagination) GetFirst() int32
- func (x *Pagination) GetHasAfter() bool
- func (x *Pagination) GetHasBefore() bool
- func (x *Pagination) GetHasFirst() bool
- func (x *Pagination) GetHasLast() bool
- func (x *Pagination) GetLast() int32
- func (*Pagination) ProtoMessage()
- func (x *Pagination) ProtoReflect() protoreflect.Message
- func (x *Pagination) Reset()
- func (x *Pagination) String() string
- type Project
- type ProjectServiceClient
- type ProjectServiceServer
- type ProjectWithCursor
- func (*ProjectWithCursor) Descriptor() ([]byte, []int)deprecated
- func (x *ProjectWithCursor) GetCursor() string
- func (x *ProjectWithCursor) GetProject() *Project
- func (x *ProjectWithCursor) GetProjectID() string
- func (*ProjectWithCursor) ProtoMessage()
- func (x *ProjectWithCursor) ProtoReflect() protoreflect.Message
- func (x *ProjectWithCursor) Reset()
- func (x *ProjectWithCursor) String() string
- type ReadProjectRequest
- func (*ReadProjectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReadProjectRequest) GetProjectID() string
- func (*ReadProjectRequest) ProtoMessage()
- func (x *ReadProjectRequest) ProtoReflect() protoreflect.Message
- func (x *ReadProjectRequest) Reset()
- func (x *ReadProjectRequest) String() string
- type ReadProjectResponse
- func (*ReadProjectResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ReadProjectResponse) GetError() Error
- func (x *ReadProjectResponse) GetErrorMessage() string
- func (x *ReadProjectResponse) GetProject() *Project
- func (*ReadProjectResponse) ProtoMessage()
- func (x *ReadProjectResponse) ProtoReflect() protoreflect.Message
- func (x *ReadProjectResponse) Reset()
- func (x *ReadProjectResponse) String() string
- type SearchRequest
- func (*SearchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchRequest) GetPagination() *Pagination
- func (x *SearchRequest) GetProjectIDs() []string
- func (x *SearchRequest) GetSortingOptions() []*SortingOptionPair
- func (*SearchRequest) ProtoMessage()
- func (x *SearchRequest) ProtoReflect() protoreflect.Message
- func (x *SearchRequest) Reset()
- func (x *SearchRequest) String() string
- type SearchResponse
- func (*SearchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SearchResponse) GetError() Error
- func (x *SearchResponse) GetErrorMessage() string
- func (x *SearchResponse) GetHasNextPage() bool
- func (x *SearchResponse) GetHasPreviousPage() bool
- func (x *SearchResponse) GetProjects() []*ProjectWithCursor
- func (x *SearchResponse) GetTotalCount() int64
- func (*SearchResponse) ProtoMessage()
- func (x *SearchResponse) ProtoReflect() protoreflect.Message
- func (x *SearchResponse) Reset()
- func (x *SearchResponse) String() string
- type SortingDirection
- func (SortingDirection) Descriptor() protoreflect.EnumDescriptor
- func (x SortingDirection) Enum() *SortingDirection
- func (SortingDirection) EnumDescriptor() ([]byte, []int)deprecated
- func (x SortingDirection) Number() protoreflect.EnumNumber
- func (x SortingDirection) String() string
- func (SortingDirection) Type() protoreflect.EnumType
- type SortingOptionPair
- func (*SortingOptionPair) Descriptor() ([]byte, []int)deprecated
- func (x *SortingOptionPair) GetDirection() SortingDirection
- func (x *SortingOptionPair) GetName() string
- func (*SortingOptionPair) ProtoMessage()
- func (x *SortingOptionPair) ProtoReflect() protoreflect.Message
- func (x *SortingOptionPair) Reset()
- func (x *SortingOptionPair) String() string
- type UnimplementedProjectServiceServer
- func (*UnimplementedProjectServiceServer) CreateProject(context.Context, *CreateProjectRequest) (*CreateProjectResponse, error)
- func (*UnimplementedProjectServiceServer) DeleteProject(context.Context, *DeleteProjectRequest) (*DeleteProjectResponse, error)
- func (*UnimplementedProjectServiceServer) ReadProject(context.Context, *ReadProjectRequest) (*ReadProjectResponse, error)
- func (*UnimplementedProjectServiceServer) Search(context.Context, *SearchRequest) (*SearchResponse, error)
- func (*UnimplementedProjectServiceServer) UpdateProject(context.Context, *UpdateProjectRequest) (*UpdateProjectResponse, error)
- type UpdateProjectRequest
- func (*UpdateProjectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateProjectRequest) GetProject() *Project
- func (x *UpdateProjectRequest) GetProjectID() string
- func (*UpdateProjectRequest) ProtoMessage()
- func (x *UpdateProjectRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateProjectRequest) Reset()
- func (x *UpdateProjectRequest) String() string
- type UpdateProjectResponse
- func (*UpdateProjectResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateProjectResponse) GetCursor() string
- func (x *UpdateProjectResponse) GetError() Error
- func (x *UpdateProjectResponse) GetErrorMessage() string
- func (x *UpdateProjectResponse) GetProject() *Project
- func (*UpdateProjectResponse) ProtoMessage()
- func (x *UpdateProjectResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateProjectResponse) Reset()
- func (x *UpdateProjectResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var ( Error_name = map[int32]string{ 0: "NO_ERROR", 1: "UNKNOWN", 2: "PROJECT_ALREADY_EXISTS", 3: "PROJECT_NOT_FOUND", 4: "BAD_REQUEST", } Error_value = map[string]int32{ "NO_ERROR": 0, "UNKNOWN": 1, "PROJECT_ALREADY_EXISTS": 2, "PROJECT_NOT_FOUND": 3, "BAD_REQUEST": 4, } )
Enum value maps for Error.
var ( SortingDirection_name = map[int32]string{ 0: "ASCENDING", 1: "DESCENDING", } SortingDirection_value = map[string]int32{ "ASCENDING": 0, "DESCENDING": 1, } )
Enum value maps for SortingDirection.
var File_project_proto protoreflect.FileDescriptor
Functions ¶
func RegisterProjectServiceServer ¶
func RegisterProjectServiceServer(s *grpc.Server, srv ProjectServiceServer)
Types ¶
type CreateProjectRequest ¶
type CreateProjectRequest struct {
// The project object
Project *Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
// contains filtered or unexported fields
}
* Request to create a new project
func (*CreateProjectRequest) Descriptor
deprecated
func (*CreateProjectRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateProjectRequest.ProtoReflect.Descriptor instead.
func (*CreateProjectRequest) GetProject ¶
func (x *CreateProjectRequest) GetProject() *Project
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
type CreateProjectResponse ¶
type CreateProjectResponse struct {
// Indicate whether the operation has any error
Error Error `protobuf:"varint,1,opt,name=error,proto3,enum=project.Error" json:"error,omitempty"`
// Contains error message if the operation was unsuccessful
ErrorMessage string `protobuf:"bytes,2,opt,name=errorMessage,proto3" json:"errorMessage,omitempty"`
// The unique project identifier
ProjectID string `protobuf:"bytes,3,opt,name=projectID,proto3" json:"projectID,omitempty"`
// The created project object
Project *Project `protobuf:"bytes,4,opt,name=project,proto3" json:"project,omitempty"`
// The cursor defines the position of the project in the repository that can be later
// referred to using pagination information
Cursor string `protobuf:"bytes,5,opt,name=cursor,proto3" json:"cursor,omitempty"`
// contains filtered or unexported fields
}
* Response contains the result of creating a new project
func (*CreateProjectResponse) Descriptor
deprecated
func (*CreateProjectResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateProjectResponse.ProtoReflect.Descriptor instead.
func (*CreateProjectResponse) GetCursor ¶
func (x *CreateProjectResponse) GetCursor() string
func (*CreateProjectResponse) GetError ¶
func (x *CreateProjectResponse) GetError() Error
func (*CreateProjectResponse) GetErrorMessage ¶
func (x *CreateProjectResponse) GetErrorMessage() string
func (*CreateProjectResponse) GetProject ¶
func (x *CreateProjectResponse) GetProject() *Project
func (*CreateProjectResponse) GetProjectID ¶
func (x *CreateProjectResponse) GetProjectID() string
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
type DeleteProjectRequest ¶
type DeleteProjectRequest struct {
// The unique project identifier
ProjectID string `protobuf:"bytes,1,opt,name=projectID,proto3" json:"projectID,omitempty"`
// contains filtered or unexported fields
}
* Request to delete an existing project
func (*DeleteProjectRequest) Descriptor
deprecated
func (*DeleteProjectRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteProjectRequest.ProtoReflect.Descriptor instead.
func (*DeleteProjectRequest) GetProjectID ¶
func (x *DeleteProjectRequest) GetProjectID() string
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
type DeleteProjectResponse ¶
type DeleteProjectResponse struct {
// Indicate whether the operation has any error
Error Error `protobuf:"varint,1,opt,name=error,proto3,enum=project.Error" json:"error,omitempty"`
// Contains error message if the operation was unsuccessful
ErrorMessage string `protobuf:"bytes,2,opt,name=errorMessage,proto3" json:"errorMessage,omitempty"`
// contains filtered or unexported fields
}
* Response contains the result of deleting an existing project
func (*DeleteProjectResponse) Descriptor
deprecated
func (*DeleteProjectResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteProjectResponse.ProtoReflect.Descriptor instead.
func (*DeleteProjectResponse) GetError ¶
func (x *DeleteProjectResponse) GetError() Error
func (*DeleteProjectResponse) GetErrorMessage ¶
func (x *DeleteProjectResponse) GetErrorMessage() string
func (*DeleteProjectResponse) ProtoMessage ¶
func (*DeleteProjectResponse) ProtoMessage()
func (*DeleteProjectResponse) ProtoReflect ¶
func (x *DeleteProjectResponse) ProtoReflect() protoreflect.Message
func (*DeleteProjectResponse) Reset ¶
func (x *DeleteProjectResponse) Reset()
func (*DeleteProjectResponse) String ¶
func (x *DeleteProjectResponse) String() string
type Error ¶
type Error int32
* The different error types
const ( // Indicates the operation was successful Error_NO_ERROR Error = 0 // Indicates the operation fail with unknown error Error_UNKNOWN Error = 1 // Indicates the project already exists Error_PROJECT_ALREADY_EXISTS Error = 2 // Indicates the project does not exist Error_PROJECT_NOT_FOUND Error = 3 // Indicates the provided values for he operation were invalid Error_BAD_REQUEST Error = 4 )
func (Error) Descriptor ¶
func (Error) Descriptor() protoreflect.EnumDescriptor
func (Error) EnumDescriptor
deprecated
func (Error) Number ¶
func (x Error) Number() protoreflect.EnumNumber
func (Error) Type ¶
func (Error) Type() protoreflect.EnumType
type Pagination ¶
type Pagination struct {
HasFirst bool `protobuf:"varint,1,opt,name=hasFirst,proto3" json:"hasFirst,omitempty"`
First int32 `protobuf:"varint,2,opt,name=first,proto3" json:"first,omitempty"`
HasAfter bool `protobuf:"varint,3,opt,name=hasAfter,proto3" json:"hasAfter,omitempty"`
After string `protobuf:"bytes,4,opt,name=after,proto3" json:"after,omitempty"`
HasLast bool `protobuf:"varint,5,opt,name=hasLast,proto3" json:"hasLast,omitempty"`
Last int32 `protobuf:"varint,6,opt,name=last,proto3" json:"last,omitempty"`
HasBefore bool `protobuf:"varint,7,opt,name=hasBefore,proto3" json:"hasBefore,omitempty"`
Before string `protobuf:"bytes,8,opt,name=before,proto3" json:"before,omitempty"`
// contains filtered or unexported fields
}
* The pagination information compatible with graphql-relay connection definition, for more information visit: https://facebook.github.io/relay/graphql/connections.htm
func (*Pagination) Descriptor
deprecated
func (*Pagination) Descriptor() ([]byte, []int)
Deprecated: Use Pagination.ProtoReflect.Descriptor instead.
func (*Pagination) GetAfter ¶
func (x *Pagination) GetAfter() string
func (*Pagination) GetBefore ¶
func (x *Pagination) GetBefore() string
func (*Pagination) GetFirst ¶
func (x *Pagination) GetFirst() int32
func (*Pagination) GetHasAfter ¶
func (x *Pagination) GetHasAfter() bool
func (*Pagination) GetHasBefore ¶
func (x *Pagination) GetHasBefore() bool
func (*Pagination) GetHasFirst ¶
func (x *Pagination) GetHasFirst() bool
func (*Pagination) GetHasLast ¶
func (x *Pagination) GetHasLast() bool
func (*Pagination) GetLast ¶
func (x *Pagination) GetLast() int32
func (*Pagination) ProtoMessage ¶
func (*Pagination) ProtoMessage()
func (*Pagination) ProtoReflect ¶
func (x *Pagination) ProtoReflect() protoreflect.Message
func (*Pagination) Reset ¶
func (x *Pagination) Reset()
func (*Pagination) String ¶
func (x *Pagination) String() string
type Project ¶
type Project struct {
// The project name
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
* The project object
func (*Project) Descriptor
deprecated
func (*Project) ProtoMessage ¶
func (*Project) ProtoMessage()
func (*Project) ProtoReflect ¶
func (x *Project) ProtoReflect() protoreflect.Message
type ProjectServiceClient ¶
type ProjectServiceClient interface {
// CreateProject creates a new project
// request: The request to create a new project
// Returns the result of creating new project
CreateProject(ctx context.Context, in *CreateProjectRequest, opts ...grpc.CallOption) (*CreateProjectResponse, error)
// ReadProject read an exsiting project
// request: The request to read an esiting project
// Returns the result of reading an exiting project
ReadProject(ctx context.Context, in *ReadProjectRequest, opts ...grpc.CallOption) (*ReadProjectResponse, error)
// UpdateProject update an exsiting project
// request: The request to update an esiting project
// Returns the result of updateing an exiting project
UpdateProject(ctx context.Context, in *UpdateProjectRequest, opts ...grpc.CallOption) (*UpdateProjectResponse, error)
// DeleteProject delete an exsiting project
// request: The request to delete an esiting project
// Returns the result of deleting an exiting project
DeleteProject(ctx context.Context, in *DeleteProjectRequest, opts ...grpc.CallOption) (*DeleteProjectResponse, error)
// Search returns the list of projects that matched the criteria
// request: The request contains the search criteria
// Returns the list of projects that matched the criteria
Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchResponse, 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.
func NewProjectServiceClient ¶
func NewProjectServiceClient(cc grpc.ClientConnInterface) ProjectServiceClient
type ProjectServiceServer ¶
type ProjectServiceServer interface {
// CreateProject creates a new project
// request: The request to create a new project
// Returns the result of creating new project
CreateProject(context.Context, *CreateProjectRequest) (*CreateProjectResponse, error)
// ReadProject read an exsiting project
// request: The request to read an esiting project
// Returns the result of reading an exiting project
ReadProject(context.Context, *ReadProjectRequest) (*ReadProjectResponse, error)
// UpdateProject update an exsiting project
// request: The request to update an esiting project
// Returns the result of updateing an exiting project
UpdateProject(context.Context, *UpdateProjectRequest) (*UpdateProjectResponse, error)
// DeleteProject delete an exsiting project
// request: The request to delete an esiting project
// Returns the result of deleting an exiting project
DeleteProject(context.Context, *DeleteProjectRequest) (*DeleteProjectResponse, error)
// Search returns the list of projects that matched the criteria
// request: The request contains the search criteria
// Returns the list of projects that matched the criteria
Search(context.Context, *SearchRequest) (*SearchResponse, error)
}
ProjectServiceServer is the server API for ProjectService service.
type ProjectWithCursor ¶
type ProjectWithCursor struct {
// The project object
Project *Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
// The unique project identifier
ProjectID string `protobuf:"bytes,2,opt,name=projectID,proto3" json:"projectID,omitempty"`
// The cursor defines the position of the project in the repository that can be later
// referred to using pagination information
Cursor string `protobuf:"bytes,3,opt,name=cursor,proto3" json:"cursor,omitempty"`
// contains filtered or unexported fields
}
The pair of project and a cursor that defines the position of the project in the repository that can later referred to using pagination information.
func (*ProjectWithCursor) Descriptor
deprecated
func (*ProjectWithCursor) Descriptor() ([]byte, []int)
Deprecated: Use ProjectWithCursor.ProtoReflect.Descriptor instead.
func (*ProjectWithCursor) GetCursor ¶
func (x *ProjectWithCursor) GetCursor() string
func (*ProjectWithCursor) GetProject ¶
func (x *ProjectWithCursor) GetProject() *Project
func (*ProjectWithCursor) GetProjectID ¶
func (x *ProjectWithCursor) GetProjectID() string
func (*ProjectWithCursor) ProtoMessage ¶
func (*ProjectWithCursor) ProtoMessage()
func (*ProjectWithCursor) ProtoReflect ¶
func (x *ProjectWithCursor) ProtoReflect() protoreflect.Message
func (*ProjectWithCursor) Reset ¶
func (x *ProjectWithCursor) Reset()
func (*ProjectWithCursor) String ¶
func (x *ProjectWithCursor) String() string
type ReadProjectRequest ¶
type ReadProjectRequest struct {
// The unique project identifier
ProjectID string `protobuf:"bytes,1,opt,name=projectID,proto3" json:"projectID,omitempty"`
// contains filtered or unexported fields
}
* Request to read an existing project
func (*ReadProjectRequest) Descriptor
deprecated
func (*ReadProjectRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReadProjectRequest.ProtoReflect.Descriptor instead.
func (*ReadProjectRequest) GetProjectID ¶
func (x *ReadProjectRequest) GetProjectID() string
func (*ReadProjectRequest) ProtoMessage ¶
func (*ReadProjectRequest) ProtoMessage()
func (*ReadProjectRequest) ProtoReflect ¶
func (x *ReadProjectRequest) ProtoReflect() protoreflect.Message
func (*ReadProjectRequest) Reset ¶
func (x *ReadProjectRequest) Reset()
func (*ReadProjectRequest) String ¶
func (x *ReadProjectRequest) String() string
type ReadProjectResponse ¶
type ReadProjectResponse struct {
// Indicate whether the operation has any error
Error Error `protobuf:"varint,1,opt,name=error,proto3,enum=project.Error" json:"error,omitempty"`
// Contains error message if the operation was unsuccessful
ErrorMessage string `protobuf:"bytes,2,opt,name=errorMessage,proto3" json:"errorMessage,omitempty"`
// The project object
Project *Project `protobuf:"bytes,3,opt,name=project,proto3" json:"project,omitempty"`
// contains filtered or unexported fields
}
* Response contains the result of reading an existing project
func (*ReadProjectResponse) Descriptor
deprecated
func (*ReadProjectResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReadProjectResponse.ProtoReflect.Descriptor instead.
func (*ReadProjectResponse) GetError ¶
func (x *ReadProjectResponse) GetError() Error
func (*ReadProjectResponse) GetErrorMessage ¶
func (x *ReadProjectResponse) GetErrorMessage() string
func (*ReadProjectResponse) GetProject ¶
func (x *ReadProjectResponse) GetProject() *Project
func (*ReadProjectResponse) ProtoMessage ¶
func (*ReadProjectResponse) ProtoMessage()
func (*ReadProjectResponse) ProtoReflect ¶
func (x *ReadProjectResponse) ProtoReflect() protoreflect.Message
func (*ReadProjectResponse) Reset ¶
func (x *ReadProjectResponse) Reset()
func (*ReadProjectResponse) String ¶
func (x *ReadProjectResponse) String() string
type SearchRequest ¶
type SearchRequest struct {
// The pagination information
Pagination *Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
// The collection of sorting option determines how the returned data must be sorted
SortingOptions []*SortingOptionPair `protobuf:"bytes,2,rep,name=sortingOptions,proto3" json:"sortingOptions,omitempty"`
// The unique project identifiers
ProjectIDs []string `protobuf:"bytes,3,rep,name=projectIDs,proto3" json:"projectIDs,omitempty"`
// contains filtered or unexported fields
}
* Request to search for projects
func (*SearchRequest) Descriptor
deprecated
func (*SearchRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.
func (*SearchRequest) GetPagination ¶
func (x *SearchRequest) GetPagination() *Pagination
func (*SearchRequest) GetProjectIDs ¶
func (x *SearchRequest) GetProjectIDs() []string
func (*SearchRequest) GetSortingOptions ¶
func (x *SearchRequest) GetSortingOptions() []*SortingOptionPair
func (*SearchRequest) ProtoMessage ¶
func (*SearchRequest) ProtoMessage()
func (*SearchRequest) ProtoReflect ¶
func (x *SearchRequest) ProtoReflect() protoreflect.Message
func (*SearchRequest) Reset ¶
func (x *SearchRequest) Reset()
func (*SearchRequest) String ¶
func (x *SearchRequest) String() string
type SearchResponse ¶
type SearchResponse struct {
// Indicate whether the operation has any error
Error Error `protobuf:"varint,1,opt,name=error,proto3,enum=project.Error" json:"error,omitempty"`
// Contains error message if the operation was unsuccessful
ErrorMessage string `protobuf:"bytes,2,opt,name=errorMessage,proto3" json:"errorMessage,omitempty"`
// Indicates whether more edges exist prior to the set defined by the clients arguments
HasPreviousPage bool `protobuf:"varint,3,opt,name=hasPreviousPage,proto3" json:"hasPreviousPage,omitempty"`
// Indicates whether more edges exist following the set defined by the clients arguments
HasNextPage bool `protobuf:"varint,4,opt,name=hasNextPage,proto3" json:"hasNextPage,omitempty"`
// Indicates the total count of the projects that matched the provided filter criteria
TotalCount int64 `protobuf:"varint,5,opt,name=totalCount,proto3" json:"totalCount,omitempty"`
// The list contains the projects that matched the search criteria
Projects []*ProjectWithCursor `protobuf:"bytes,6,rep,name=projects,proto3" json:"projects,omitempty"`
// contains filtered or unexported fields
}
* Response contains the result of searching for projects
func (*SearchResponse) Descriptor
deprecated
func (*SearchResponse) Descriptor() ([]byte, []int)
Deprecated: Use SearchResponse.ProtoReflect.Descriptor instead.
func (*SearchResponse) GetError ¶
func (x *SearchResponse) GetError() Error
func (*SearchResponse) GetErrorMessage ¶
func (x *SearchResponse) GetErrorMessage() string
func (*SearchResponse) GetHasNextPage ¶
func (x *SearchResponse) GetHasNextPage() bool
func (*SearchResponse) GetHasPreviousPage ¶
func (x *SearchResponse) GetHasPreviousPage() bool
func (*SearchResponse) GetProjects ¶
func (x *SearchResponse) GetProjects() []*ProjectWithCursor
func (*SearchResponse) GetTotalCount ¶
func (x *SearchResponse) GetTotalCount() int64
func (*SearchResponse) ProtoMessage ¶
func (*SearchResponse) ProtoMessage()
func (*SearchResponse) ProtoReflect ¶
func (x *SearchResponse) ProtoReflect() protoreflect.Message
func (*SearchResponse) Reset ¶
func (x *SearchResponse) Reset()
func (*SearchResponse) String ¶
func (x *SearchResponse) String() string
type SortingDirection ¶
type SortingDirection int32
* The different sorting direction
const ( // Indicates result data must be sorted from low to high sequence SortingDirection_ASCENDING SortingDirection = 0 // Indicates result data must be sorted from high to low sequence SortingDirection_DESCENDING SortingDirection = 1 )
func (SortingDirection) Descriptor ¶
func (SortingDirection) Descriptor() protoreflect.EnumDescriptor
func (SortingDirection) Enum ¶
func (x SortingDirection) Enum() *SortingDirection
func (SortingDirection) EnumDescriptor
deprecated
func (SortingDirection) EnumDescriptor() ([]byte, []int)
Deprecated: Use SortingDirection.Descriptor instead.
func (SortingDirection) Number ¶
func (x SortingDirection) Number() protoreflect.EnumNumber
func (SortingDirection) String ¶
func (x SortingDirection) String() string
func (SortingDirection) Type ¶
func (SortingDirection) Type() protoreflect.EnumType
type SortingOptionPair ¶
type SortingOptionPair struct {
// The name of the field on
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// THe sorting direction
Direction SortingDirection `protobuf:"varint,2,opt,name=direction,proto3,enum=project.SortingDirection" json:"direction,omitempty"`
// contains filtered or unexported fields
}
* Defines the pair of values that are used to determine how the result data should be sorted.
func (*SortingOptionPair) Descriptor
deprecated
func (*SortingOptionPair) Descriptor() ([]byte, []int)
Deprecated: Use SortingOptionPair.ProtoReflect.Descriptor instead.
func (*SortingOptionPair) GetDirection ¶
func (x *SortingOptionPair) GetDirection() SortingDirection
func (*SortingOptionPair) GetName ¶
func (x *SortingOptionPair) GetName() string
func (*SortingOptionPair) ProtoMessage ¶
func (*SortingOptionPair) ProtoMessage()
func (*SortingOptionPair) ProtoReflect ¶
func (x *SortingOptionPair) ProtoReflect() protoreflect.Message
func (*SortingOptionPair) Reset ¶
func (x *SortingOptionPair) Reset()
func (*SortingOptionPair) String ¶
func (x *SortingOptionPair) String() string
type UnimplementedProjectServiceServer ¶
type UnimplementedProjectServiceServer struct {
}
UnimplementedProjectServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedProjectServiceServer) CreateProject ¶
func (*UnimplementedProjectServiceServer) CreateProject(context.Context, *CreateProjectRequest) (*CreateProjectResponse, error)
func (*UnimplementedProjectServiceServer) DeleteProject ¶
func (*UnimplementedProjectServiceServer) DeleteProject(context.Context, *DeleteProjectRequest) (*DeleteProjectResponse, error)
func (*UnimplementedProjectServiceServer) ReadProject ¶
func (*UnimplementedProjectServiceServer) ReadProject(context.Context, *ReadProjectRequest) (*ReadProjectResponse, error)
func (*UnimplementedProjectServiceServer) Search ¶
func (*UnimplementedProjectServiceServer) Search(context.Context, *SearchRequest) (*SearchResponse, error)
func (*UnimplementedProjectServiceServer) UpdateProject ¶
func (*UnimplementedProjectServiceServer) UpdateProject(context.Context, *UpdateProjectRequest) (*UpdateProjectResponse, error)
type UpdateProjectRequest ¶
type UpdateProjectRequest struct {
// The unique project identifier
ProjectID string `protobuf:"bytes,1,opt,name=projectID,proto3" json:"projectID,omitempty"`
// The project object contains the updated project details to update
Project *Project `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
// contains filtered or unexported fields
}
* Request to update an existing project
func (*UpdateProjectRequest) Descriptor
deprecated
func (*UpdateProjectRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateProjectRequest.ProtoReflect.Descriptor instead.
func (*UpdateProjectRequest) GetProject ¶
func (x *UpdateProjectRequest) GetProject() *Project
func (*UpdateProjectRequest) GetProjectID ¶
func (x *UpdateProjectRequest) GetProjectID() string
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
type UpdateProjectResponse ¶
type UpdateProjectResponse struct {
// Indicate whether the operation has any error
Error Error `protobuf:"varint,1,opt,name=error,proto3,enum=project.Error" json:"error,omitempty"`
// Contains error message if the operation was unsuccessful
ErrorMessage string `protobuf:"bytes,2,opt,name=errorMessage,proto3" json:"errorMessage,omitempty"`
// The updated project object
Project *Project `protobuf:"bytes,3,opt,name=project,proto3" json:"project,omitempty"`
// The cursor defines the position of the project in the repository that can be later
// referred to using pagination information
Cursor string `protobuf:"bytes,4,opt,name=cursor,proto3" json:"cursor,omitempty"`
// contains filtered or unexported fields
}
* Response contains the result of updating an existing project
func (*UpdateProjectResponse) Descriptor
deprecated
func (*UpdateProjectResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateProjectResponse.ProtoReflect.Descriptor instead.
func (*UpdateProjectResponse) GetCursor ¶
func (x *UpdateProjectResponse) GetCursor() string
func (*UpdateProjectResponse) GetError ¶
func (x *UpdateProjectResponse) GetError() Error
func (*UpdateProjectResponse) GetErrorMessage ¶
func (x *UpdateProjectResponse) GetErrorMessage() string
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