Documentation ¶
Overview ¶
Package gitservice is a generated protocol buffer package.
It is generated from these files:
git.proto
It has these top-level messages:
Change GitError SaveRequest RemoveRequest RenameRequest CommitResponse ChangesRequest
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Change_Op_name = map[int32]string{
0: "OpNone",
1: "OpAdd",
2: "OpUpdate",
3: "OpRename",
}
View Source
var Change_Op_value = map[string]int32{
"OpNone": 0,
"OpAdd": 1,
"OpUpdate": 2,
"OpRename": 3,
}
Functions ¶
func RegisterGitServer ¶
Types ¶
type Change ¶
type Change struct { Op Change_Op `protobuf:"varint,1,opt,name=op,enum=gitservice.Change_Op" json:"op,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` Email string `protobuf:"bytes,3,opt,name=email" json:"email,omitempty"` Msg string `protobuf:"bytes,4,opt,name=msg" json:"msg,omitempty"` }
func (*Change) ProtoMessage ¶
func (*Change) ProtoMessage()
type ChangesRequest ¶
type ChangesRequest struct {
Path string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"`
}
func (*ChangesRequest) ProtoMessage ¶
func (*ChangesRequest) ProtoMessage()
func (*ChangesRequest) Reset ¶
func (m *ChangesRequest) Reset()
func (*ChangesRequest) String ¶
func (m *ChangesRequest) String() string
type CommitResponse ¶
type CommitResponse struct { Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` Email string `protobuf:"bytes,3,opt,name=email" json:"email,omitempty"` Msg string `protobuf:"bytes,4,opt,name=msg" json:"msg,omitempty"` }
func (*CommitResponse) ProtoMessage ¶
func (*CommitResponse) ProtoMessage()
func (*CommitResponse) Reset ¶
func (m *CommitResponse) Reset()
func (*CommitResponse) String ¶
func (m *CommitResponse) String() string
type GitClient ¶
type GitClient interface { Save(ctx context.Context, in *SaveRequest, opts ...grpc.CallOption) (*CommitResponse, error) Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*CommitResponse, error) Rename(ctx context.Context, in *RenameRequest, opts ...grpc.CallOption) (*CommitResponse, error) Changes(ctx context.Context, in *ChangesRequest, opts ...grpc.CallOption) (Git_ChangesClient, error) }
func NewGitClient ¶
func NewGitClient(cc *grpc.ClientConn) GitClient
type GitError ¶
type GitError struct {
Error string `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"`
}
func (*GitError) ProtoMessage ¶
func (*GitError) ProtoMessage()
type GitServer ¶
type GitServer interface { Save(context.Context, *SaveRequest) (*CommitResponse, error) Remove(context.Context, *RemoveRequest) (*CommitResponse, error) Rename(context.Context, *RenameRequest) (*CommitResponse, error) Changes(*ChangesRequest, Git_ChangesServer) error }
type Git_ChangesClient ¶
type Git_ChangesClient interface { Recv() (*Change, error) grpc.ClientStream }
type Git_ChangesServer ¶
type Git_ChangesServer interface { Send(*Change) error grpc.ServerStream }
type RemoveRequest ¶
type RemoveRequest struct { Path string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` Email string `protobuf:"bytes,3,opt,name=email" json:"email,omitempty"` Msg string `protobuf:"bytes,4,opt,name=msg" json:"msg,omitempty"` }
func (*RemoveRequest) ProtoMessage ¶
func (*RemoveRequest) ProtoMessage()
func (*RemoveRequest) Reset ¶
func (m *RemoveRequest) Reset()
func (*RemoveRequest) String ¶
func (m *RemoveRequest) String() string
type RenameRequest ¶
type RenameRequest struct { Src string `protobuf:"bytes,1,opt,name=src" json:"src,omitempty"` Dst string `protobuf:"bytes,2,opt,name=dst" json:"dst,omitempty"` Name string `protobuf:"bytes,3,opt,name=name" json:"name,omitempty"` Email string `protobuf:"bytes,4,opt,name=email" json:"email,omitempty"` Msg string `protobuf:"bytes,5,opt,name=msg" json:"msg,omitempty"` }
func (*RenameRequest) ProtoMessage ¶
func (*RenameRequest) ProtoMessage()
func (*RenameRequest) Reset ¶
func (m *RenameRequest) Reset()
func (*RenameRequest) String ¶
func (m *RenameRequest) String() string
type SaveRequest ¶
type SaveRequest struct { Path string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"` Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` Email string `protobuf:"bytes,3,opt,name=email" json:"email,omitempty"` Msg string `protobuf:"bytes,4,opt,name=msg" json:"msg,omitempty"` }
func (*SaveRequest) ProtoMessage ¶
func (*SaveRequest) ProtoMessage()
func (*SaveRequest) Reset ¶
func (m *SaveRequest) Reset()
func (*SaveRequest) String ¶
func (m *SaveRequest) String() string
Click to show internal directories.
Click to hide internal directories.