Documentation ¶
Index ¶
- Variables
- func RegisterVCServiceServer(s grpc.ServiceRegistrar, srv VCServiceServer)
- type Project
- func (*Project) Descriptor() ([]byte, []int)deprecated
- func (x *Project) GetDescription() string
- func (x *Project) GetFork() bool
- func (x *Project) GetName() string
- func (x *Project) GetTopics() []string
- func (x *Project) GetUrl() string
- func (*Project) ProtoMessage()
- func (x *Project) ProtoReflect() protoreflect.Message
- func (x *Project) Reset()
- func (x *Project) String() string
- type ProjectRequest
- type ProjectResponse
- type UnimplementedVCServiceServer
- type UnsafeVCServiceServer
- type VCServiceClient
- type VCServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_vc_proto protoreflect.FileDescriptor
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) GetDescription ¶
func (*Project) ProtoMessage ¶
func (*Project) ProtoMessage()
func (*Project) ProtoReflect ¶
func (x *Project) ProtoReflect() protoreflect.Message
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 ¶
func (UnimplementedVCServiceServer) Projects(context.Context, *ProjectRequest) (*ProjectResponse, error)
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