gitgrpc

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_protos_gitgrpc_proto protoreflect.FileDescriptor
View Source
var GitService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "gitgrpc.GitService",
	HandlerType: (*GitServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SaveToGit",
			Handler:    _GitService_SaveToGit_Handler,
		},
		{
			MethodName: "ReadFileHistory",
			Handler:    _GitService_ReadFileHistory_Handler,
		},
		{
			MethodName: "ReadCommitContent",
			Handler:    _GitService_ReadCommitContent_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "protos/gitgrpc.proto",
}

GitService_ServiceDesc is the grpc.ServiceDesc for GitService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterGitServiceServer

func RegisterGitServiceServer(s grpc.ServiceRegistrar, srv GitServiceServer)

Types

type GitServiceClient

type GitServiceClient interface {
	SaveToGit(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
	ReadFileHistory(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
	ReadCommitContent(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}

GitServiceClient is the client API for GitService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewGitServiceClient

func NewGitServiceClient(cc grpc.ClientConnInterface) GitServiceClient

type GitServiceServer

type GitServiceServer interface {
	SaveToGit(context.Context, *Request) (*Response, error)
	ReadFileHistory(context.Context, *Request) (*Response, error)
	ReadCommitContent(context.Context, *Request) (*Response, error)
	// contains filtered or unexported methods
}

GitServiceServer is the server API for GitService service. All implementations must embed UnimplementedGitServiceServer for forward compatibility

type Request

type Request struct {
	RelativePath   string `protobuf:"bytes,1,opt,name=relativePath,proto3" json:"relativePath,omitempty"`
	FileName       string `protobuf:"bytes,2,opt,name=fileName,proto3" json:"fileName,omitempty"`
	CommitterName  string `protobuf:"bytes,3,opt,name=committerName,proto3" json:"committerName,omitempty"`
	CommitterEmail string `protobuf:"bytes,4,opt,name=committerEmail,proto3" json:"committerEmail,omitempty"`
	CommitMessage  string `protobuf:"bytes,5,opt,name=commitMessage,proto3" json:"commitMessage,omitempty"`
	Content        string `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"`
	GitUrl         string `protobuf:"bytes,7,opt,name=gitUrl,proto3" json:"gitUrl,omitempty"`
	GitUsername    string `protobuf:"bytes,8,opt,name=gitUsername,proto3" json:"gitUsername,omitempty"`
	GitPassword    string `protobuf:"bytes,9,opt,name=gitPassword,proto3" json:"gitPassword,omitempty"`
	GitToken       string `protobuf:"bytes,10,opt,name=gitToken,proto3" json:"gitToken,omitempty"`
	CommitHash     string `protobuf:"bytes,11,opt,name=commitHash,proto3" json:"commitHash,omitempty"`
	// contains filtered or unexported fields
}

func (*Request) Descriptor deprecated

func (*Request) Descriptor() ([]byte, []int)

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetCommitHash

func (x *Request) GetCommitHash() string

func (*Request) GetCommitMessage

func (x *Request) GetCommitMessage() string

func (*Request) GetCommitterEmail

func (x *Request) GetCommitterEmail() string

func (*Request) GetCommitterName

func (x *Request) GetCommitterName() string

func (*Request) GetContent

func (x *Request) GetContent() string

func (*Request) GetFileName

func (x *Request) GetFileName() string

func (*Request) GetGitPassword

func (x *Request) GetGitPassword() string

func (*Request) GetGitToken

func (x *Request) GetGitToken() string

func (*Request) GetGitUrl

func (x *Request) GetGitUrl() string

func (*Request) GetGitUsername

func (x *Request) GetGitUsername() string

func (*Request) GetRelativePath

func (x *Request) GetRelativePath() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

type Response

type Response struct {
	Status  string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*Response) Descriptor deprecated

func (*Response) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetMessage

func (x *Response) GetMessage() string

func (*Response) GetStatus

func (x *Response) GetStatus() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type UnimplementedGitServiceServer

type UnimplementedGitServiceServer struct {
}

UnimplementedGitServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedGitServiceServer) ReadCommitContent

func (UnimplementedGitServiceServer) ReadFileHistory

func (UnimplementedGitServiceServer) SaveToGit

type UnsafeGitServiceServer

type UnsafeGitServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeGitServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GitServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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