pb

package
v0.0.0-...-f0d8a09 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetBody

func (x *Message) GetBody() string

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

func (x *Message) ProtoReflect() protoreflect.Message

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

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.

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) Descriptor() ([]byte, []int)

Deprecated: Use ReqBase.ProtoReflect.Descriptor instead.

func (*ReqBase) GetProjectName

func (x *ReqBase) GetProjectName() string

func (*ReqBase) GetUserOrOrg

func (x *ReqBase) GetUserOrOrg() string

func (*ReqBase) ProtoMessage

func (*ReqBase) ProtoMessage()

func (*ReqBase) ProtoReflect

func (x *ReqBase) ProtoReflect() protoreflect.Message

func (*ReqBase) Reset

func (x *ReqBase) Reset()

func (*ReqBase) String

func (x *ReqBase) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use ReqList.ProtoReflect.Descriptor instead.

func (*ReqList) GetProjectName

func (x *ReqList) GetProjectName() string

func (*ReqList) GetTreePath

func (x *ReqList) GetTreePath() string

func (*ReqList) GetUserOrOrg

func (x *ReqList) GetUserOrOrg() string

func (*ReqList) ProtoMessage

func (*ReqList) ProtoMessage()

func (*ReqList) ProtoReflect

func (x *ReqList) ProtoReflect() protoreflect.Message

func (*ReqList) Reset

func (x *ReqList) Reset()

func (*ReqList) String

func (x *ReqList) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use ReqMirror.ProtoReflect.Descriptor instead.

func (*ReqMirror) GetProjectName

func (x *ReqMirror) GetProjectName() string

func (*ReqMirror) GetRemoteAddr

func (x *ReqMirror) GetRemoteAddr() string

func (*ReqMirror) GetUserOrOrg

func (x *ReqMirror) GetUserOrOrg() string

func (*ReqMirror) ProtoMessage

func (*ReqMirror) ProtoMessage()

func (*ReqMirror) ProtoReflect

func (x *ReqMirror) ProtoReflect() protoreflect.Message

func (*ReqMirror) Reset

func (x *ReqMirror) Reset()

func (*ReqMirror) String

func (x *ReqMirror) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use RespBool.ProtoReflect.Descriptor instead.

func (*RespBool) GetTrueOrFalse

func (x *RespBool) GetTrueOrFalse() bool

func (*RespBool) ProtoMessage

func (*RespBool) ProtoMessage()

func (*RespBool) ProtoReflect

func (x *RespBool) ProtoReflect() protoreflect.Message

func (*RespBool) Reset

func (x *RespBool) Reset()

func (*RespBool) String

func (x *RespBool) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use RespList.ProtoReflect.Descriptor instead.

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

func (*RespList) Reset

func (x *RespList) Reset()

func (*RespList) String

func (x *RespList) String() string

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) Create

func (*UnimplementedRepoServiceServer) CreateMirror

func (*UnimplementedRepoServiceServer) Delete

func (*UnimplementedRepoServiceServer) Editor

func (*UnimplementedRepoServiceServer) List

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL