vcproto

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: ISC Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var VCService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "vcproto.VCService",
	HandlerType: (*VCServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Projects",
			Handler:    _VCService_Projects_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "vc.proto",
}

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

Functions

func RegisterVCServiceServer

func RegisterVCServiceServer(s grpc.ServiceRegistrar, srv VCServiceServer)

Types

type Project

type Project struct {
	Name        string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description *string  `protobuf:"bytes,2,opt,name=description,proto3,oneof" json:"description,omitempty"`
	Url         string   `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
	Topics      []string `protobuf:"bytes,4,rep,name=topics,proto3" json:"topics,omitempty"`
	Fork        bool     `protobuf:"varint,5,opt,name=fork,proto3" json:"fork,omitempty"`
	// contains filtered or unexported fields
}

func (*Project) Descriptor deprecated

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

Deprecated: Use Project.ProtoReflect.Descriptor instead.

func (*Project) GetDescription

func (x *Project) GetDescription() string

func (*Project) GetFork

func (x *Project) GetFork() bool

func (*Project) GetName

func (x *Project) GetName() string

func (*Project) GetTopics

func (x *Project) GetTopics() []string

func (*Project) GetUrl

func (x *Project) GetUrl() string

func (*Project) ProtoMessage

func (*Project) ProtoMessage()

func (*Project) ProtoReflect

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

func (*Project) Reset

func (x *Project) Reset()

func (*Project) String

func (x *Project) String() string

type ProjectRequest

type ProjectRequest struct {
	// contains filtered or unexported fields
}

func (*ProjectRequest) Descriptor deprecated

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

Deprecated: Use ProjectRequest.ProtoReflect.Descriptor instead.

func (*ProjectRequest) ProtoMessage

func (*ProjectRequest) ProtoMessage()

func (*ProjectRequest) ProtoReflect

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

func (*ProjectRequest) Reset

func (x *ProjectRequest) Reset()

func (*ProjectRequest) String

func (x *ProjectRequest) String() string

type ProjectResponse

type ProjectResponse struct {
	Projects []*Project `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"`
	// contains filtered or unexported fields
}

func (*ProjectResponse) Descriptor deprecated

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

Deprecated: Use ProjectResponse.ProtoReflect.Descriptor instead.

func (*ProjectResponse) GetProjects

func (x *ProjectResponse) GetProjects() []*Project

func (*ProjectResponse) ProtoMessage

func (*ProjectResponse) ProtoMessage()

func (*ProjectResponse) ProtoReflect

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

func (*ProjectResponse) Reset

func (x *ProjectResponse) Reset()

func (*ProjectResponse) String

func (x *ProjectResponse) String() string

type UnimplementedVCServiceServer

type UnimplementedVCServiceServer struct {
}

UnimplementedVCServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedVCServiceServer) Projects

type UnsafeVCServiceServer

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

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

type VCServiceClient

type VCServiceClient interface {
	Projects(ctx context.Context, in *ProjectRequest, opts ...grpc.CallOption) (*ProjectResponse, error)
}

VCServiceClient is the client API for VCService 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 NewVCServiceClient

func NewVCServiceClient(cc grpc.ClientConnInterface) VCServiceClient

type VCServiceServer

type VCServiceServer interface {
	Projects(context.Context, *ProjectRequest) (*ProjectResponse, error)
	// contains filtered or unexported methods
}

VCServiceServer is the server API for VCService service. All implementations must embed UnimplementedVCServiceServer for forward compatibility

Jump to

Keyboard shortcuts

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