Documentation ¶
Overview ¶
Package projectservice is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- func RegisterProjectServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterProjectServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProjectServiceClient) error
- func RegisterProjectServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterProjectServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ProjectServiceServer) error
- func RegisterProjectServiceServer(s *grpc.Server, srv ProjectServiceServer)
- type CreateProjectServiceRequest
- func (*CreateProjectServiceRequest) Descriptor() ([]byte, []int)
- func (m *CreateProjectServiceRequest) GetData() *project.Project
- func (*CreateProjectServiceRequest) ProtoMessage()
- func (m *CreateProjectServiceRequest) Reset()
- func (m *CreateProjectServiceRequest) String() string
- func (m *CreateProjectServiceRequest) XXX_DiscardUnknown()
- func (m *CreateProjectServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateProjectServiceRequest) XXX_Merge(src proto.Message)
- func (m *CreateProjectServiceRequest) XXX_Size() int
- func (m *CreateProjectServiceRequest) XXX_Unmarshal(b []byte) error
- type DeleteProjectServiceRequest
- func (*DeleteProjectServiceRequest) Descriptor() ([]byte, []int)
- func (m *DeleteProjectServiceRequest) GetData() *empty.Empty
- func (m *DeleteProjectServiceRequest) GetPrj() string
- func (*DeleteProjectServiceRequest) ProtoMessage()
- func (m *DeleteProjectServiceRequest) Reset()
- func (m *DeleteProjectServiceRequest) String() string
- func (m *DeleteProjectServiceRequest) XXX_DiscardUnknown()
- func (m *DeleteProjectServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteProjectServiceRequest) XXX_Merge(src proto.Message)
- func (m *DeleteProjectServiceRequest) XXX_Size() int
- func (m *DeleteProjectServiceRequest) XXX_Unmarshal(b []byte) error
- type GetProjectServiceRequest
- func (*GetProjectServiceRequest) Descriptor() ([]byte, []int)
- func (m *GetProjectServiceRequest) GetPrj() string
- func (*GetProjectServiceRequest) ProtoMessage()
- func (m *GetProjectServiceRequest) Reset()
- func (m *GetProjectServiceRequest) String() string
- func (m *GetProjectServiceRequest) XXX_DiscardUnknown()
- func (m *GetProjectServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetProjectServiceRequest) XXX_Merge(src proto.Message)
- func (m *GetProjectServiceRequest) XXX_Size() int
- func (m *GetProjectServiceRequest) XXX_Unmarshal(b []byte) error
- type ListProjectServiceRequest
- func (*ListProjectServiceRequest) Descriptor() ([]byte, []int)
- func (m *ListProjectServiceRequest) GetFields() string
- func (m *ListProjectServiceRequest) GetFilter() string
- func (m *ListProjectServiceRequest) GetLimit() int32
- func (m *ListProjectServiceRequest) GetOrderBy() string
- func (m *ListProjectServiceRequest) GetPage() int32
- func (m *ListProjectServiceRequest) GetQ() string
- func (m *ListProjectServiceRequest) GetView() string
- func (*ListProjectServiceRequest) ProtoMessage()
- func (m *ListProjectServiceRequest) Reset()
- func (m *ListProjectServiceRequest) String() string
- func (m *ListProjectServiceRequest) XXX_DiscardUnknown()
- func (m *ListProjectServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListProjectServiceRequest) XXX_Merge(src proto.Message)
- func (m *ListProjectServiceRequest) XXX_Size() int
- func (m *ListProjectServiceRequest) XXX_Unmarshal(b []byte) error
- type ProjectServiceClient
- type ProjectServiceServer
- type UnimplementedProjectServiceServer
- func (*UnimplementedProjectServiceServer) CreateProject(ctx context.Context, req *CreateProjectServiceRequest) (*project.ProjectEntity, error)
- func (*UnimplementedProjectServiceServer) DeleteProject(ctx context.Context, req *DeleteProjectServiceRequest) (*empty.Empty, error)
- func (*UnimplementedProjectServiceServer) GetProject(ctx context.Context, req *GetProjectServiceRequest) (*project.ProjectEntity, error)
- func (*UnimplementedProjectServiceServer) ListProjects(ctx context.Context, req *ListProjectServiceRequest) (*project.ProjectCollection, error)
- func (*UnimplementedProjectServiceServer) UpdateProject(ctx context.Context, req *UpdateProjectServiceRequest) (*project.ProjectEntity, error)
- type UpdateProjectServiceRequest
- func (*UpdateProjectServiceRequest) Descriptor() ([]byte, []int)
- func (m *UpdateProjectServiceRequest) GetData() *project.Project
- func (m *UpdateProjectServiceRequest) GetPrj() string
- func (*UpdateProjectServiceRequest) ProtoMessage()
- func (m *UpdateProjectServiceRequest) Reset()
- func (m *UpdateProjectServiceRequest) String() string
- func (m *UpdateProjectServiceRequest) XXX_DiscardUnknown()
- func (m *UpdateProjectServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateProjectServiceRequest) XXX_Merge(src proto.Message)
- func (m *UpdateProjectServiceRequest) XXX_Size() int
- func (m *UpdateProjectServiceRequest) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterProjectServiceHandler ¶
func RegisterProjectServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterProjectServiceHandler registers the http handlers for service ProjectService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterProjectServiceHandlerClient ¶
func RegisterProjectServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProjectServiceClient) error
RegisterProjectServiceHandlerClient registers the http handlers for service ProjectService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ProjectServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ProjectServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ProjectServiceClient" to call the correct interceptors.
func RegisterProjectServiceHandlerFromEndpoint ¶
func RegisterProjectServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterProjectServiceHandlerFromEndpoint is same as RegisterProjectServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterProjectServiceHandlerServer ¶
func RegisterProjectServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ProjectServiceServer) error
RegisterProjectServiceHandlerServer registers the http handlers for service ProjectService to "mux". UnaryRPC :call ProjectServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterProjectServiceServer ¶
func RegisterProjectServiceServer(s *grpc.Server, srv ProjectServiceServer)
Types ¶
type CreateProjectServiceRequest ¶
type CreateProjectServiceRequest struct { Data *project.Project `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateProjectServiceRequest) Descriptor ¶
func (*CreateProjectServiceRequest) Descriptor() ([]byte, []int)
func (*CreateProjectServiceRequest) GetData ¶
func (m *CreateProjectServiceRequest) GetData() *project.Project
func (*CreateProjectServiceRequest) ProtoMessage ¶
func (*CreateProjectServiceRequest) ProtoMessage()
func (*CreateProjectServiceRequest) Reset ¶
func (m *CreateProjectServiceRequest) Reset()
func (*CreateProjectServiceRequest) String ¶
func (m *CreateProjectServiceRequest) String() string
func (*CreateProjectServiceRequest) XXX_DiscardUnknown ¶
func (m *CreateProjectServiceRequest) XXX_DiscardUnknown()
func (*CreateProjectServiceRequest) XXX_Marshal ¶
func (m *CreateProjectServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateProjectServiceRequest) XXX_Merge ¶
func (m *CreateProjectServiceRequest) XXX_Merge(src proto.Message)
func (*CreateProjectServiceRequest) XXX_Size ¶
func (m *CreateProjectServiceRequest) XXX_Size() int
func (*CreateProjectServiceRequest) XXX_Unmarshal ¶
func (m *CreateProjectServiceRequest) XXX_Unmarshal(b []byte) error
type DeleteProjectServiceRequest ¶
type DeleteProjectServiceRequest struct { Prj string `protobuf:"bytes,1,opt,name=prj,proto3" json:"prj,omitempty"` Data *empty.Empty `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeleteProjectServiceRequest) Descriptor ¶
func (*DeleteProjectServiceRequest) Descriptor() ([]byte, []int)
func (*DeleteProjectServiceRequest) GetData ¶
func (m *DeleteProjectServiceRequest) GetData() *empty.Empty
func (*DeleteProjectServiceRequest) GetPrj ¶
func (m *DeleteProjectServiceRequest) GetPrj() string
func (*DeleteProjectServiceRequest) ProtoMessage ¶
func (*DeleteProjectServiceRequest) ProtoMessage()
func (*DeleteProjectServiceRequest) Reset ¶
func (m *DeleteProjectServiceRequest) Reset()
func (*DeleteProjectServiceRequest) String ¶
func (m *DeleteProjectServiceRequest) String() string
func (*DeleteProjectServiceRequest) XXX_DiscardUnknown ¶
func (m *DeleteProjectServiceRequest) XXX_DiscardUnknown()
func (*DeleteProjectServiceRequest) XXX_Marshal ¶
func (m *DeleteProjectServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteProjectServiceRequest) XXX_Merge ¶
func (m *DeleteProjectServiceRequest) XXX_Merge(src proto.Message)
func (*DeleteProjectServiceRequest) XXX_Size ¶
func (m *DeleteProjectServiceRequest) XXX_Size() int
func (*DeleteProjectServiceRequest) XXX_Unmarshal ¶
func (m *DeleteProjectServiceRequest) XXX_Unmarshal(b []byte) error
type GetProjectServiceRequest ¶
type GetProjectServiceRequest struct { Prj string `protobuf:"bytes,1,opt,name=prj,proto3" json:"prj,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetProjectServiceRequest) Descriptor ¶
func (*GetProjectServiceRequest) Descriptor() ([]byte, []int)
func (*GetProjectServiceRequest) GetPrj ¶
func (m *GetProjectServiceRequest) GetPrj() string
func (*GetProjectServiceRequest) ProtoMessage ¶
func (*GetProjectServiceRequest) ProtoMessage()
func (*GetProjectServiceRequest) Reset ¶
func (m *GetProjectServiceRequest) Reset()
func (*GetProjectServiceRequest) String ¶
func (m *GetProjectServiceRequest) String() string
func (*GetProjectServiceRequest) XXX_DiscardUnknown ¶
func (m *GetProjectServiceRequest) XXX_DiscardUnknown()
func (*GetProjectServiceRequest) XXX_Marshal ¶
func (m *GetProjectServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetProjectServiceRequest) XXX_Merge ¶
func (m *GetProjectServiceRequest) XXX_Merge(src proto.Message)
func (*GetProjectServiceRequest) XXX_Size ¶
func (m *GetProjectServiceRequest) XXX_Size() int
func (*GetProjectServiceRequest) XXX_Unmarshal ¶
func (m *GetProjectServiceRequest) XXX_Unmarshal(b []byte) error
type ListProjectServiceRequest ¶
type ListProjectServiceRequest struct { //Partial representation, fields=id,name Fields string `protobuf:"bytes,1,opt,name=fields,proto3" json:"fields,omitempty"` //* // Sort fields, comma separated list for the ordering // use **?filter=-display_name** with a dash to sort descending // use **?filter=display_name** to sort ascending OrderBy string `protobuf:"bytes,2,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` //Filter Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"` //Page number for paginated content. Tipp: follow the HATEOAS next, prev,... Page int32 `protobuf:"varint,4,opt,name=page,proto3" json:"page,omitempty"` //Number of elements to return per page Limit int32 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"` //https://cloud.google.com/apis/design/design_patterns#resource_view View string `protobuf:"bytes,8,opt,name=view,proto3" json:"view,omitempty"` //Query term to search a project Q string `protobuf:"bytes,11,opt,name=q,proto3" json:"q,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListProjectServiceRequest) Descriptor ¶
func (*ListProjectServiceRequest) Descriptor() ([]byte, []int)
func (*ListProjectServiceRequest) GetFields ¶
func (m *ListProjectServiceRequest) GetFields() string
func (*ListProjectServiceRequest) GetFilter ¶
func (m *ListProjectServiceRequest) GetFilter() string
func (*ListProjectServiceRequest) GetLimit ¶
func (m *ListProjectServiceRequest) GetLimit() int32
func (*ListProjectServiceRequest) GetOrderBy ¶
func (m *ListProjectServiceRequest) GetOrderBy() string
func (*ListProjectServiceRequest) GetPage ¶
func (m *ListProjectServiceRequest) GetPage() int32
func (*ListProjectServiceRequest) GetQ ¶
func (m *ListProjectServiceRequest) GetQ() string
func (*ListProjectServiceRequest) GetView ¶
func (m *ListProjectServiceRequest) GetView() string
func (*ListProjectServiceRequest) ProtoMessage ¶
func (*ListProjectServiceRequest) ProtoMessage()
func (*ListProjectServiceRequest) Reset ¶
func (m *ListProjectServiceRequest) Reset()
func (*ListProjectServiceRequest) String ¶
func (m *ListProjectServiceRequest) String() string
func (*ListProjectServiceRequest) XXX_DiscardUnknown ¶
func (m *ListProjectServiceRequest) XXX_DiscardUnknown()
func (*ListProjectServiceRequest) XXX_Marshal ¶
func (m *ListProjectServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListProjectServiceRequest) XXX_Merge ¶
func (m *ListProjectServiceRequest) XXX_Merge(src proto.Message)
func (*ListProjectServiceRequest) XXX_Size ¶
func (m *ListProjectServiceRequest) XXX_Size() int
func (*ListProjectServiceRequest) XXX_Unmarshal ¶
func (m *ListProjectServiceRequest) XXX_Unmarshal(b []byte) error
type ProjectServiceClient ¶
type ProjectServiceClient interface { // Creates a new Project CreateProject(ctx context.Context, in *CreateProjectServiceRequest, opts ...grpc.CallOption) (*project.ProjectEntity, error) // Delete a Project DeleteProject(ctx context.Context, in *DeleteProjectServiceRequest, opts ...grpc.CallOption) (*empty.Empty, error) // The Get method takes zero or more parameters, and returns a ProjectEntity which contains a Project GetProject(ctx context.Context, in *GetProjectServiceRequest, opts ...grpc.CallOption) (*project.ProjectEntity, error) // The List method takes zero or more parameters as input, and returns a ProjectCollection of ProjectEntity that match the input parameters. ListProjects(ctx context.Context, in *ListProjectServiceRequest, opts ...grpc.CallOption) (*project.ProjectCollection, error) // Updates a Project, partial updates are supported UpdateProject(ctx context.Context, in *UpdateProjectServiceRequest, opts ...grpc.CallOption) (*project.ProjectEntity, 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.ClientConn) ProjectServiceClient
type ProjectServiceServer ¶
type ProjectServiceServer interface { // Creates a new Project CreateProject(context.Context, *CreateProjectServiceRequest) (*project.ProjectEntity, error) // Delete a Project DeleteProject(context.Context, *DeleteProjectServiceRequest) (*empty.Empty, error) // The Get method takes zero or more parameters, and returns a ProjectEntity which contains a Project GetProject(context.Context, *GetProjectServiceRequest) (*project.ProjectEntity, error) // The List method takes zero or more parameters as input, and returns a ProjectCollection of ProjectEntity that match the input parameters. ListProjects(context.Context, *ListProjectServiceRequest) (*project.ProjectCollection, error) // Updates a Project, partial updates are supported UpdateProject(context.Context, *UpdateProjectServiceRequest) (*project.ProjectEntity, error) }
ProjectServiceServer is the server API for ProjectService service.
type UnimplementedProjectServiceServer ¶
type UnimplementedProjectServiceServer struct { }
UnimplementedProjectServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedProjectServiceServer) CreateProject ¶
func (*UnimplementedProjectServiceServer) CreateProject(ctx context.Context, req *CreateProjectServiceRequest) (*project.ProjectEntity, error)
func (*UnimplementedProjectServiceServer) DeleteProject ¶
func (*UnimplementedProjectServiceServer) DeleteProject(ctx context.Context, req *DeleteProjectServiceRequest) (*empty.Empty, error)
func (*UnimplementedProjectServiceServer) GetProject ¶
func (*UnimplementedProjectServiceServer) GetProject(ctx context.Context, req *GetProjectServiceRequest) (*project.ProjectEntity, error)
func (*UnimplementedProjectServiceServer) ListProjects ¶
func (*UnimplementedProjectServiceServer) ListProjects(ctx context.Context, req *ListProjectServiceRequest) (*project.ProjectCollection, error)
func (*UnimplementedProjectServiceServer) UpdateProject ¶
func (*UnimplementedProjectServiceServer) UpdateProject(ctx context.Context, req *UpdateProjectServiceRequest) (*project.ProjectEntity, error)
type UpdateProjectServiceRequest ¶
type UpdateProjectServiceRequest struct { Prj string `protobuf:"bytes,1,opt,name=prj,proto3" json:"prj,omitempty"` Data *project.Project `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UpdateProjectServiceRequest) Descriptor ¶
func (*UpdateProjectServiceRequest) Descriptor() ([]byte, []int)
func (*UpdateProjectServiceRequest) GetData ¶
func (m *UpdateProjectServiceRequest) GetData() *project.Project
func (*UpdateProjectServiceRequest) GetPrj ¶
func (m *UpdateProjectServiceRequest) GetPrj() string
func (*UpdateProjectServiceRequest) ProtoMessage ¶
func (*UpdateProjectServiceRequest) ProtoMessage()
func (*UpdateProjectServiceRequest) Reset ¶
func (m *UpdateProjectServiceRequest) Reset()
func (*UpdateProjectServiceRequest) String ¶
func (m *UpdateProjectServiceRequest) String() string
func (*UpdateProjectServiceRequest) XXX_DiscardUnknown ¶
func (m *UpdateProjectServiceRequest) XXX_DiscardUnknown()
func (*UpdateProjectServiceRequest) XXX_Marshal ¶
func (m *UpdateProjectServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateProjectServiceRequest) XXX_Merge ¶
func (m *UpdateProjectServiceRequest) XXX_Merge(src proto.Message)
func (*UpdateProjectServiceRequest) XXX_Size ¶
func (m *UpdateProjectServiceRequest) XXX_Size() int
func (*UpdateProjectServiceRequest) XXX_Unmarshal ¶
func (m *UpdateProjectServiceRequest) XXX_Unmarshal(b []byte) error