Documentation ¶
Index ¶
- Variables
- func RegisterRepoServiceServer(s *grpc.Server, srv RepoServiceServer)
- type Message
- type RepoServiceClient
- type RepoServiceServer
- type ReqBase
- type ReqList
- func (*ReqList) Descriptor() ([]byte, []int)deprecated
- func (x *ReqList) GetProjectName() string
- func (x *ReqList) GetTreePath() string
- func (x *ReqList) GetUserOrOrg() string
- func (*ReqList) ProtoMessage()
- func (x *ReqList) ProtoReflect() protoreflect.Message
- func (x *ReqList) Reset()
- func (x *ReqList) String() string
- type ReqMirror
- func (*ReqMirror) Descriptor() ([]byte, []int)deprecated
- func (x *ReqMirror) GetProjectName() string
- func (x *ReqMirror) GetRemoteAddr() string
- func (x *ReqMirror) GetUserOrOrg() string
- func (*ReqMirror) ProtoMessage()
- func (x *ReqMirror) ProtoReflect() protoreflect.Message
- func (x *ReqMirror) Reset()
- func (x *ReqMirror) String() string
- type ReqUpdateOptions
- func (*ReqUpdateOptions) Descriptor() ([]byte, []int)deprecated
- func (x *ReqUpdateOptions) GetContent() string
- func (x *ReqUpdateOptions) GetIsNewFile() bool
- func (x *ReqUpdateOptions) GetLastCommitID() string
- func (x *ReqUpdateOptions) GetMessage() string
- func (x *ReqUpdateOptions) GetNewBranch() string
- func (x *ReqUpdateOptions) GetNewTreeName() string
- func (x *ReqUpdateOptions) GetOldBranch() string
- func (x *ReqUpdateOptions) GetOldTreeName() string
- func (x *ReqUpdateOptions) GetProjectName() string
- func (x *ReqUpdateOptions) GetUserOrOrg() string
- func (*ReqUpdateOptions) ProtoMessage()
- func (x *ReqUpdateOptions) ProtoReflect() protoreflect.Message
- func (x *ReqUpdateOptions) Reset()
- func (x *ReqUpdateOptions) String() string
- type RespBool
- type RespFileList
- func (*RespFileList) Descriptor() ([]byte, []int)deprecated
- func (x *RespFileList) GetCommitId() string
- func (x *RespFileList) GetMessage() string
- func (x *RespFileList) GetName() string
- func (x *RespFileList) GetType() string
- func (x *RespFileList) GetWhen() string
- func (*RespFileList) ProtoMessage()
- func (x *RespFileList) ProtoReflect() protoreflect.Message
- func (x *RespFileList) Reset()
- func (x *RespFileList) String() string
- type RespList
- func (*RespList) Descriptor() ([]byte, []int)deprecated
- func (x *RespList) GetList() []*RespFileList
- func (x *RespList) GetNewest() *RespStructNewest
- func (x *RespList) GetSingle() *RespSingle
- func (*RespList) ProtoMessage()
- func (x *RespList) ProtoReflect() protoreflect.Message
- func (x *RespList) Reset()
- func (x *RespList) String() string
- type RespSingle
- func (*RespSingle) Descriptor() ([]byte, []int)deprecated
- func (x *RespSingle) GetContent() string
- func (x *RespSingle) GetName() string
- func (x *RespSingle) GetSize() int64
- func (*RespSingle) ProtoMessage()
- func (x *RespSingle) ProtoReflect() protoreflect.Message
- func (x *RespSingle) Reset()
- func (x *RespSingle) String() string
- type RespStructNewest
- func (*RespStructNewest) Descriptor() ([]byte, []int)deprecated
- func (x *RespStructNewest) GetAuthorName() string
- func (x *RespStructNewest) GetBranchName() string
- func (x *RespStructNewest) GetCommitId() string
- func (x *RespStructNewest) GetIsHasReadme() bool
- func (x *RespStructNewest) GetMessage() string
- func (x *RespStructNewest) GetResponeType() string
- func (x *RespStructNewest) GetWhen() string
- func (*RespStructNewest) ProtoMessage()
- func (x *RespStructNewest) ProtoReflect() protoreflect.Message
- func (x *RespStructNewest) Reset()
- func (x *RespStructNewest) String() string
- type UnimplementedRepoServiceServer
- func (*UnimplementedRepoServiceServer) Create(context.Context, *ReqBase) (*RespBool, error)
- func (*UnimplementedRepoServiceServer) CreateMirror(context.Context, *ReqMirror) (*RespBool, error)
- func (*UnimplementedRepoServiceServer) Delete(context.Context, *ReqBase) (*RespBool, error)
- func (*UnimplementedRepoServiceServer) Editor(context.Context, *ReqUpdateOptions) (*RespBool, error)
- func (*UnimplementedRepoServiceServer) List(context.Context, *ReqList) (*RespList, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var File_pb_repo_proto protoreflect.FileDescriptor
Functions ¶
func RegisterRepoServiceServer ¶
func RegisterRepoServiceServer(s *grpc.Server, srv RepoServiceServer)
Types ¶
type Message ¶
type Message struct { Body string `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
request
func (*Message) Descriptor
deprecated
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type RepoServiceClient ¶
type RepoServiceClient interface { Create(ctx context.Context, in *ReqBase, opts ...grpc.CallOption) (*RespBool, error) Delete(ctx context.Context, in *ReqBase, opts ...grpc.CallOption) (*RespBool, error) List(ctx context.Context, in *ReqList, opts ...grpc.CallOption) (*RespList, error) Editor(ctx context.Context, in *ReqUpdateOptions, opts ...grpc.CallOption) (*RespBool, error) //mirror CreateMirror(ctx context.Context, in *ReqMirror, opts ...grpc.CallOption) (*RespBool, error) }
RepoServiceClient is the client API for RepoService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewRepoServiceClient ¶
func NewRepoServiceClient(cc grpc.ClientConnInterface) RepoServiceClient
type RepoServiceServer ¶
type RepoServiceServer interface { Create(context.Context, *ReqBase) (*RespBool, error) Delete(context.Context, *ReqBase) (*RespBool, error) List(context.Context, *ReqList) (*RespList, error) Editor(context.Context, *ReqUpdateOptions) (*RespBool, error) //mirror CreateMirror(context.Context, *ReqMirror) (*RespBool, error) }
RepoServiceServer is the server API for RepoService service.
type ReqBase ¶
type ReqBase struct { UserOrOrg string `protobuf:"bytes,1,opt,name=UserOrOrg,proto3" json:"UserOrOrg,omitempty"` ProjectName string `protobuf:"bytes,2,opt,name=ProjectName,proto3" json:"ProjectName,omitempty"` // contains filtered or unexported fields }
func (*ReqBase) Descriptor
deprecated
func (*ReqBase) GetProjectName ¶
func (*ReqBase) GetUserOrOrg ¶
func (*ReqBase) ProtoMessage ¶
func (*ReqBase) ProtoMessage()
func (*ReqBase) ProtoReflect ¶
func (x *ReqBase) ProtoReflect() protoreflect.Message
type ReqList ¶
type ReqList struct { UserOrOrg string `protobuf:"bytes,1,opt,name=UserOrOrg,proto3" json:"UserOrOrg,omitempty"` ProjectName string `protobuf:"bytes,2,opt,name=ProjectName,proto3" json:"ProjectName,omitempty"` TreePath string `protobuf:"bytes,3,opt,name=TreePath,proto3" json:"TreePath,omitempty"` // contains filtered or unexported fields }
func (*ReqList) Descriptor
deprecated
func (*ReqList) GetProjectName ¶
func (*ReqList) GetTreePath ¶
func (*ReqList) GetUserOrOrg ¶
func (*ReqList) ProtoMessage ¶
func (*ReqList) ProtoMessage()
func (*ReqList) ProtoReflect ¶
func (x *ReqList) ProtoReflect() protoreflect.Message
type ReqMirror ¶
type ReqMirror struct { RemoteAddr string `protobuf:"bytes,1,opt,name=RemoteAddr,proto3" json:"RemoteAddr,omitempty"` UserOrOrg string `protobuf:"bytes,2,opt,name=UserOrOrg,proto3" json:"UserOrOrg,omitempty"` ProjectName string `protobuf:"bytes,3,opt,name=ProjectName,proto3" json:"ProjectName,omitempty"` // contains filtered or unexported fields }
func (*ReqMirror) Descriptor
deprecated
func (*ReqMirror) GetProjectName ¶
func (*ReqMirror) GetRemoteAddr ¶
func (*ReqMirror) GetUserOrOrg ¶
func (*ReqMirror) ProtoMessage ¶
func (*ReqMirror) ProtoMessage()
func (*ReqMirror) ProtoReflect ¶
func (x *ReqMirror) ProtoReflect() protoreflect.Message
type ReqUpdateOptions ¶
type ReqUpdateOptions struct { LastCommitID string `protobuf:"bytes,1,opt,name=LastCommitID,proto3" json:"LastCommitID,omitempty"` OldBranch string `protobuf:"bytes,2,opt,name=OldBranch,proto3" json:"OldBranch,omitempty"` NewBranch string `protobuf:"bytes,3,opt,name=NewBranch,proto3" json:"NewBranch,omitempty"` OldTreeName string `protobuf:"bytes,4,opt,name=OldTreeName,proto3" json:"OldTreeName,omitempty"` NewTreeName string `protobuf:"bytes,5,opt,name=NewTreeName,proto3" json:"NewTreeName,omitempty"` Message string `protobuf:"bytes,6,opt,name=Message,proto3" json:"Message,omitempty"` Content string `protobuf:"bytes,7,opt,name=Content,proto3" json:"Content,omitempty"` IsNewFile bool `protobuf:"varint,8,opt,name=IsNewFile,proto3" json:"IsNewFile,omitempty"` UserOrOrg string `protobuf:"bytes,9,opt,name=UserOrOrg,proto3" json:"UserOrOrg,omitempty"` ProjectName string `protobuf:"bytes,10,opt,name=ProjectName,proto3" json:"ProjectName,omitempty"` // contains filtered or unexported fields }
func (*ReqUpdateOptions) Descriptor
deprecated
func (*ReqUpdateOptions) Descriptor() ([]byte, []int)
Deprecated: Use ReqUpdateOptions.ProtoReflect.Descriptor instead.
func (*ReqUpdateOptions) GetContent ¶
func (x *ReqUpdateOptions) GetContent() string
func (*ReqUpdateOptions) GetIsNewFile ¶
func (x *ReqUpdateOptions) GetIsNewFile() bool
func (*ReqUpdateOptions) GetLastCommitID ¶
func (x *ReqUpdateOptions) GetLastCommitID() string
func (*ReqUpdateOptions) GetMessage ¶
func (x *ReqUpdateOptions) GetMessage() string
func (*ReqUpdateOptions) GetNewBranch ¶
func (x *ReqUpdateOptions) GetNewBranch() string
func (*ReqUpdateOptions) GetNewTreeName ¶
func (x *ReqUpdateOptions) GetNewTreeName() string
func (*ReqUpdateOptions) GetOldBranch ¶
func (x *ReqUpdateOptions) GetOldBranch() string
func (*ReqUpdateOptions) GetOldTreeName ¶
func (x *ReqUpdateOptions) GetOldTreeName() string
func (*ReqUpdateOptions) GetProjectName ¶
func (x *ReqUpdateOptions) GetProjectName() string
func (*ReqUpdateOptions) GetUserOrOrg ¶
func (x *ReqUpdateOptions) GetUserOrOrg() string
func (*ReqUpdateOptions) ProtoMessage ¶
func (*ReqUpdateOptions) ProtoMessage()
func (*ReqUpdateOptions) ProtoReflect ¶
func (x *ReqUpdateOptions) ProtoReflect() protoreflect.Message
func (*ReqUpdateOptions) Reset ¶
func (x *ReqUpdateOptions) Reset()
func (*ReqUpdateOptions) String ¶
func (x *ReqUpdateOptions) String() string
type RespBool ¶
type RespBool struct { TrueOrFalse bool `protobuf:"varint,1,opt,name=TrueOrFalse,proto3" json:"TrueOrFalse,omitempty"` // contains filtered or unexported fields }
func (*RespBool) Descriptor
deprecated
func (*RespBool) GetTrueOrFalse ¶
func (*RespBool) ProtoMessage ¶
func (*RespBool) ProtoMessage()
func (*RespBool) ProtoReflect ¶
func (x *RespBool) ProtoReflect() protoreflect.Message
type RespFileList ¶
type RespFileList struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` CommitId string `protobuf:"bytes,2,opt,name=CommitId,proto3" json:"CommitId,omitempty"` Type string `protobuf:"bytes,3,opt,name=Type,proto3" json:"Type,omitempty"` When string `protobuf:"bytes,4,opt,name=When,proto3" json:"When,omitempty"` Message string `protobuf:"bytes,5,opt,name=Message,proto3" json:"Message,omitempty"` // contains filtered or unexported fields }
func (*RespFileList) Descriptor
deprecated
func (*RespFileList) Descriptor() ([]byte, []int)
Deprecated: Use RespFileList.ProtoReflect.Descriptor instead.
func (*RespFileList) GetCommitId ¶
func (x *RespFileList) GetCommitId() string
func (*RespFileList) GetMessage ¶
func (x *RespFileList) GetMessage() string
func (*RespFileList) GetName ¶
func (x *RespFileList) GetName() string
func (*RespFileList) GetType ¶
func (x *RespFileList) GetType() string
func (*RespFileList) GetWhen ¶
func (x *RespFileList) GetWhen() string
func (*RespFileList) ProtoMessage ¶
func (*RespFileList) ProtoMessage()
func (*RespFileList) ProtoReflect ¶
func (x *RespFileList) ProtoReflect() protoreflect.Message
func (*RespFileList) Reset ¶
func (x *RespFileList) Reset()
func (*RespFileList) String ¶
func (x *RespFileList) String() string
type RespList ¶
type RespList struct { Newest *RespStructNewest `protobuf:"bytes,1,opt,name=Newest,proto3" json:"Newest,omitempty"` Single *RespSingle `protobuf:"bytes,2,opt,name=Single,proto3" json:"Single,omitempty"` List []*RespFileList `protobuf:"bytes,3,rep,name=List,proto3" json:"List,omitempty"` // contains filtered or unexported fields }
func (*RespList) Descriptor
deprecated
func (*RespList) GetList ¶
func (x *RespList) GetList() []*RespFileList
func (*RespList) GetNewest ¶
func (x *RespList) GetNewest() *RespStructNewest
func (*RespList) GetSingle ¶
func (x *RespList) GetSingle() *RespSingle
func (*RespList) ProtoMessage ¶
func (*RespList) ProtoMessage()
func (*RespList) ProtoReflect ¶
func (x *RespList) ProtoReflect() protoreflect.Message
type RespSingle ¶
type RespSingle struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` Size int64 `protobuf:"varint,2,opt,name=Size,proto3" json:"Size,omitempty"` Content string `protobuf:"bytes,3,opt,name=Content,proto3" json:"Content,omitempty"` // contains filtered or unexported fields }
func (*RespSingle) Descriptor
deprecated
func (*RespSingle) Descriptor() ([]byte, []int)
Deprecated: Use RespSingle.ProtoReflect.Descriptor instead.
func (*RespSingle) GetContent ¶
func (x *RespSingle) GetContent() string
func (*RespSingle) GetName ¶
func (x *RespSingle) GetName() string
func (*RespSingle) GetSize ¶
func (x *RespSingle) GetSize() int64
func (*RespSingle) ProtoMessage ¶
func (*RespSingle) ProtoMessage()
func (*RespSingle) ProtoReflect ¶
func (x *RespSingle) ProtoReflect() protoreflect.Message
func (*RespSingle) Reset ¶
func (x *RespSingle) Reset()
func (*RespSingle) String ¶
func (x *RespSingle) String() string
type RespStructNewest ¶
type RespStructNewest struct { Message string `protobuf:"bytes,1,opt,name=Message,proto3" json:"Message,omitempty"` CommitId string `protobuf:"bytes,2,opt,name=CommitId,proto3" json:"CommitId,omitempty"` AuthorName string `protobuf:"bytes,3,opt,name=AuthorName,proto3" json:"AuthorName,omitempty"` When string `protobuf:"bytes,4,opt,name=When,proto3" json:"When,omitempty"` BranchName string `protobuf:"bytes,5,opt,name=BranchName,proto3" json:"BranchName,omitempty"` IsHasReadme bool `protobuf:"varint,6,opt,name=IsHasReadme,proto3" json:"IsHasReadme,omitempty"` ResponeType string `protobuf:"bytes,7,opt,name=ResponeType,proto3" json:"ResponeType,omitempty"` // contains filtered or unexported fields }
func (*RespStructNewest) Descriptor
deprecated
func (*RespStructNewest) Descriptor() ([]byte, []int)
Deprecated: Use RespStructNewest.ProtoReflect.Descriptor instead.
func (*RespStructNewest) GetAuthorName ¶
func (x *RespStructNewest) GetAuthorName() string
func (*RespStructNewest) GetBranchName ¶
func (x *RespStructNewest) GetBranchName() string
func (*RespStructNewest) GetCommitId ¶
func (x *RespStructNewest) GetCommitId() string
func (*RespStructNewest) GetIsHasReadme ¶
func (x *RespStructNewest) GetIsHasReadme() bool
func (*RespStructNewest) GetMessage ¶
func (x *RespStructNewest) GetMessage() string
func (*RespStructNewest) GetResponeType ¶
func (x *RespStructNewest) GetResponeType() string
func (*RespStructNewest) GetWhen ¶
func (x *RespStructNewest) GetWhen() string
func (*RespStructNewest) ProtoMessage ¶
func (*RespStructNewest) ProtoMessage()
func (*RespStructNewest) ProtoReflect ¶
func (x *RespStructNewest) ProtoReflect() protoreflect.Message
func (*RespStructNewest) Reset ¶
func (x *RespStructNewest) Reset()
func (*RespStructNewest) String ¶
func (x *RespStructNewest) String() string
type UnimplementedRepoServiceServer ¶
type UnimplementedRepoServiceServer struct { }
UnimplementedRepoServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedRepoServiceServer) CreateMirror ¶
func (*UnimplementedRepoServiceServer) Editor ¶
func (*UnimplementedRepoServiceServer) Editor(context.Context, *ReqUpdateOptions) (*RespBool, error)
Click to show internal directories.
Click to hide internal directories.