projects

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_external_gitlab_projects_projects_v1_proto protoreflect.FileDescriptor
View Source
var Projects_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "gitlab.Projects",
	HandlerType: (*ProjectsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Get",
			Handler:    _Projects_Get_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "List",
			Handler:       _Projects_List_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "external/gitlab/projects/projects_v1.proto",
}

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

Functions

func RegisterProjectsServer

func RegisterProjectsServer(s grpc.ServiceRegistrar, srv ProjectsServer)

Types

type ProjectID

type ProjectID struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Gitlab Project ID
	// contains filtered or unexported fields
}

* Represents a Gitlab Project ID

func (*ProjectID) Descriptor deprecated

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

Deprecated: Use ProjectID.ProtoReflect.Descriptor instead.

func (*ProjectID) GetId

func (x *ProjectID) GetId() int64

func (*ProjectID) ProtoMessage

func (*ProjectID) ProtoMessage()

func (*ProjectID) ProtoReflect

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

func (*ProjectID) Reset

func (x *ProjectID) Reset()

func (*ProjectID) String

func (x *ProjectID) String() string

type ProjectInfo

type ProjectInfo struct {
	Id          int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                               // Gitlab Project ID
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`                            // Gitlab Project name
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`              // Gitlab Project description
	WebUrl      string `protobuf:"bytes,4,opt,name=web_url,json=webUrl,proto3" json:"web_url,omitempty"`          // Gitlab Project URL
	AvatarUrl   string `protobuf:"bytes,5,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` // Gitlab Project avatar URL
	ReadmeUrl   string `protobuf:"bytes,6,opt,name=readme_url,json=readmeUrl,proto3" json:"readme_url,omitempty"` // // Gitlab Project readme ID
	// contains filtered or unexported fields
}

* Represents a Gitlab Project

func (*ProjectInfo) Descriptor deprecated

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

Deprecated: Use ProjectInfo.ProtoReflect.Descriptor instead.

func (*ProjectInfo) GetAvatarUrl

func (x *ProjectInfo) GetAvatarUrl() string

func (*ProjectInfo) GetDescription

func (x *ProjectInfo) GetDescription() string

func (*ProjectInfo) GetId

func (x *ProjectInfo) GetId() int64

func (*ProjectInfo) GetName

func (x *ProjectInfo) GetName() string

func (*ProjectInfo) GetReadmeUrl

func (x *ProjectInfo) GetReadmeUrl() string

func (*ProjectInfo) GetWebUrl

func (x *ProjectInfo) GetWebUrl() string

func (*ProjectInfo) ProtoMessage

func (*ProjectInfo) ProtoMessage()

func (*ProjectInfo) ProtoReflect

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

func (*ProjectInfo) Reset

func (x *ProjectInfo) Reset()

func (*ProjectInfo) String

func (x *ProjectInfo) String() string

type ProjectName

type ProjectName struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Gitlab Project name
	// contains filtered or unexported fields
}

* Represents a Gitlab Project name

func (*ProjectName) Descriptor deprecated

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

Deprecated: Use ProjectName.ProtoReflect.Descriptor instead.

func (*ProjectName) GetName

func (x *ProjectName) GetName() string

func (*ProjectName) ProtoMessage

func (*ProjectName) ProtoMessage()

func (*ProjectName) ProtoReflect

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

func (*ProjectName) Reset

func (x *ProjectName) Reset()

func (*ProjectName) String

func (x *ProjectName) String() string

type ProjectsClient

type ProjectsClient interface {
	/// Get project by ID
	Get(ctx context.Context, in *ProjectID, opts ...grpc.CallOption) (*ProjectInfo, error)
	/// Stream projects by name
	List(ctx context.Context, in *ProjectName, opts ...grpc.CallOption) (Projects_ListClient, error)
}

ProjectsClient is the client API for Projects 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 NewProjectsClient

func NewProjectsClient(cc grpc.ClientConnInterface) ProjectsClient

type ProjectsServer

type ProjectsServer interface {
	/// Get project by ID
	Get(context.Context, *ProjectID) (*ProjectInfo, error)
	/// Stream projects by name
	List(*ProjectName, Projects_ListServer) error
	// contains filtered or unexported methods
}

ProjectsServer is the server API for Projects service. All implementations must embed UnimplementedProjectsServer for forward compatibility

type Projects_ListClient

type Projects_ListClient interface {
	Recv() (*ProjectInfo, error)
	grpc.ClientStream
}

type Projects_ListServer

type Projects_ListServer interface {
	Send(*ProjectInfo) error
	grpc.ServerStream
}

type UnimplementedProjectsServer

type UnimplementedProjectsServer struct {
}

UnimplementedProjectsServer must be embedded to have forward compatible implementations.

func (UnimplementedProjectsServer) Get

func (UnimplementedProjectsServer) List

type UnsafeProjectsServer

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

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

Jump to

Keyboard shortcuts

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