Documentation ¶
Overview ¶
Package project is a generated protocol buffer package.
It is generated from these files:
proto/project/project.proto
It has these top-level messages:
ListRequest ListResponse CreateRequest CreateResponse ReadRequest ReadResponse UpdateRequest UpdateResponse ProjectItem
Index ¶
- func RegisterProjectHandler(s server.Server, hdlr ProjectHandler, opts ...server.HandlerOption)
- type CreateRequest
- type CreateResponse
- type ListRequest
- type ListResponse
- type Project
- func (h *Project) Create(ctx context.Context, in *CreateRequest, out *CreateResponse) error
- func (h *Project) List(ctx context.Context, in *ListRequest, out *ListResponse) error
- func (h *Project) Read(ctx context.Context, in *ReadRequest, out *ReadResponse) error
- func (h *Project) Update(ctx context.Context, in *UpdateRequest, out *UpdateResponse) error
- type ProjectClient
- type ProjectHandler
- type ProjectItem
- type ReadRequest
- type ReadResponse
- type UpdateRequest
- type UpdateResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterProjectHandler ¶
func RegisterProjectHandler(s server.Server, hdlr ProjectHandler, opts ...server.HandlerOption)
Types ¶
type CreateRequest ¶
type CreateRequest struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Description string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"` }
func (*CreateRequest) Descriptor ¶
func (*CreateRequest) Descriptor() ([]byte, []int)
func (*CreateRequest) GetDescription ¶ added in v0.3.0
func (m *CreateRequest) GetDescription() string
func (*CreateRequest) GetName ¶ added in v0.3.0
func (m *CreateRequest) GetName() string
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) Reset ¶
func (m *CreateRequest) Reset()
func (*CreateRequest) String ¶
func (m *CreateRequest) String() string
type CreateResponse ¶
type CreateResponse struct { Status uint32 `protobuf:"varint,1,opt,name=status" json:"status,omitempty"` Id uint64 `protobuf:"varint,2,opt,name=id" json:"id,omitempty"` }
func (*CreateResponse) Descriptor ¶
func (*CreateResponse) Descriptor() ([]byte, []int)
func (*CreateResponse) GetId ¶ added in v0.3.0
func (m *CreateResponse) GetId() uint64
func (*CreateResponse) GetStatus ¶ added in v0.3.0
func (m *CreateResponse) GetStatus() uint32
func (*CreateResponse) ProtoMessage ¶
func (*CreateResponse) ProtoMessage()
func (*CreateResponse) Reset ¶
func (m *CreateResponse) Reset()
func (*CreateResponse) String ¶
func (m *CreateResponse) String() string
type ListRequest ¶
type ListRequest struct { }
func (*ListRequest) Descriptor ¶
func (*ListRequest) Descriptor() ([]byte, []int)
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) Reset ¶
func (m *ListRequest) Reset()
func (*ListRequest) String ¶
func (m *ListRequest) String() string
type ListResponse ¶
type ListResponse struct { Status uint32 `protobuf:"varint,1,opt,name=status" json:"status,omitempty"` Projects []*ProjectItem `protobuf:"bytes,2,rep,name=projects" json:"projects,omitempty"` }
func (*ListResponse) Descriptor ¶
func (*ListResponse) Descriptor() ([]byte, []int)
func (*ListResponse) GetProjects ¶
func (m *ListResponse) GetProjects() []*ProjectItem
func (*ListResponse) GetStatus ¶ added in v0.3.0
func (m *ListResponse) GetStatus() uint32
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) Reset ¶
func (m *ListResponse) Reset()
func (*ListResponse) String ¶
func (m *ListResponse) String() string
type Project ¶
type Project struct {
ProjectHandler
}
func (*Project) Create ¶
func (h *Project) Create(ctx context.Context, in *CreateRequest, out *CreateResponse) error
func (*Project) List ¶
func (h *Project) List(ctx context.Context, in *ListRequest, out *ListResponse) error
func (*Project) Read ¶
func (h *Project) Read(ctx context.Context, in *ReadRequest, out *ReadResponse) error
func (*Project) Update ¶
func (h *Project) Update(ctx context.Context, in *UpdateRequest, out *UpdateResponse) error
type ProjectClient ¶
type ProjectClient interface { Create(ctx context.Context, in *CreateRequest, opts ...client.CallOption) (*CreateResponse, error) Read(ctx context.Context, in *ReadRequest, opts ...client.CallOption) (*ReadResponse, error) Update(ctx context.Context, in *UpdateRequest, opts ...client.CallOption) (*UpdateResponse, error) List(ctx context.Context, in *ListRequest, opts ...client.CallOption) (*ListResponse, error) }
func NewProjectClient ¶
func NewProjectClient(serviceName string, c client.Client) ProjectClient
type ProjectHandler ¶
type ProjectHandler interface { Create(context.Context, *CreateRequest, *CreateResponse) error Read(context.Context, *ReadRequest, *ReadResponse) error Update(context.Context, *UpdateRequest, *UpdateResponse) error List(context.Context, *ListRequest, *ListResponse) error }
type ProjectItem ¶
type ProjectItem struct { Id uint64 `protobuf:"varint,2,opt,name=id" json:"id,omitempty"` Name string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"` Description string `protobuf:"bytes,4,opt,name=description" json:"description,omitempty"` }
func (*ProjectItem) Descriptor ¶
func (*ProjectItem) Descriptor() ([]byte, []int)
func (*ProjectItem) GetDescription ¶ added in v0.3.0
func (m *ProjectItem) GetDescription() string
func (*ProjectItem) GetId ¶ added in v0.3.0
func (m *ProjectItem) GetId() uint64
func (*ProjectItem) GetName ¶ added in v0.3.0
func (m *ProjectItem) GetName() string
func (*ProjectItem) ProtoMessage ¶
func (*ProjectItem) ProtoMessage()
func (*ProjectItem) Reset ¶
func (m *ProjectItem) Reset()
func (*ProjectItem) String ¶
func (m *ProjectItem) String() string
type ReadRequest ¶
type ReadRequest struct {
Id uint64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
}
func (*ReadRequest) Descriptor ¶
func (*ReadRequest) Descriptor() ([]byte, []int)
func (*ReadRequest) GetId ¶ added in v0.3.0
func (m *ReadRequest) GetId() uint64
func (*ReadRequest) ProtoMessage ¶
func (*ReadRequest) ProtoMessage()
func (*ReadRequest) Reset ¶
func (m *ReadRequest) Reset()
func (*ReadRequest) String ¶
func (m *ReadRequest) String() string
type ReadResponse ¶
type ReadResponse struct { Status uint32 `protobuf:"varint,1,opt,name=status" json:"status,omitempty"` Project *ProjectItem `protobuf:"bytes,2,opt,name=project" json:"project,omitempty"` }
func (*ReadResponse) Descriptor ¶
func (*ReadResponse) Descriptor() ([]byte, []int)
func (*ReadResponse) GetProject ¶
func (m *ReadResponse) GetProject() *ProjectItem
func (*ReadResponse) GetStatus ¶ added in v0.3.0
func (m *ReadResponse) GetStatus() uint32
func (*ReadResponse) ProtoMessage ¶
func (*ReadResponse) ProtoMessage()
func (*ReadResponse) Reset ¶
func (m *ReadResponse) Reset()
func (*ReadResponse) String ¶
func (m *ReadResponse) String() string
type UpdateRequest ¶
type UpdateRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"` }
func (*UpdateRequest) Descriptor ¶
func (*UpdateRequest) Descriptor() ([]byte, []int)
func (*UpdateRequest) GetDescription ¶ added in v0.3.0
func (m *UpdateRequest) GetDescription() string
func (*UpdateRequest) GetId ¶ added in v0.3.0
func (m *UpdateRequest) GetId() uint64
func (*UpdateRequest) GetName ¶ added in v0.3.0
func (m *UpdateRequest) GetName() string
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) Reset ¶
func (m *UpdateRequest) Reset()
func (*UpdateRequest) String ¶
func (m *UpdateRequest) String() string
type UpdateResponse ¶
type UpdateResponse struct {
Status uint32 `protobuf:"varint,1,opt,name=status" json:"status,omitempty"`
}
func (*UpdateResponse) Descriptor ¶
func (*UpdateResponse) Descriptor() ([]byte, []int)
func (*UpdateResponse) GetStatus ¶ added in v0.3.0
func (m *UpdateResponse) GetStatus() uint32
func (*UpdateResponse) ProtoMessage ¶
func (*UpdateResponse) ProtoMessage()
func (*UpdateResponse) Reset ¶
func (m *UpdateResponse) Reset()
func (*UpdateResponse) String ¶
func (m *UpdateResponse) String() string
Click to show internal directories.
Click to hide internal directories.