tracker

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2021 License: MIT Imports: 18 Imported by: 2

Documentation

Overview

Package tracker is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var DependencyService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cloud.deps.api.v1alpha.tracker.DependencyService",
	HandlerType: (*DependencyServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListDependents",
			Handler:    _DependencyService_ListDependents_Handler,
		},
		{
			MethodName: "ListDependencies",
			Handler:    _DependencyService_ListDependencies_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "depscloud_api/v1alpha/tracker/tracker.proto",
}

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

View Source
var File_depscloud_api_v1alpha_tracker_tracker_proto protoreflect.FileDescriptor
View Source
var ModuleService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cloud.deps.api.v1alpha.tracker.ModuleService",
	HandlerType: (*ModuleServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "List",
			Handler:    _ModuleService_List_Handler,
		},
		{
			MethodName: "ListSources",
			Handler:    _ModuleService_ListSources_Handler,
		},
		{
			MethodName: "ListManaged",
			Handler:    _ModuleService_ListManaged_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "depscloud_api/v1alpha/tracker/tracker.proto",
}

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

View Source
var SearchService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cloud.deps.api.v1alpha.tracker.SearchService",
	HandlerType: (*SearchServiceServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Search",
			Handler:       _SearchService_Search_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
		{
			StreamName:    "BreadthFirstSearch",
			Handler:       _SearchService_BreadthFirstSearch_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
		{
			StreamName:    "DepthFirstSearch",
			Handler:       _SearchService_DepthFirstSearch_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "depscloud_api/v1alpha/tracker/tracker.proto",
}

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

View Source
var SourceService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cloud.deps.api.v1alpha.tracker.SourceService",
	HandlerType: (*SourceServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "List",
			Handler:    _SourceService_List_Handler,
		},
		{
			MethodName: "Track",
			Handler:    _SourceService_Track_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "depscloud_api/v1alpha/tracker/tracker.proto",
}

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

Functions

func RegisterDependencyServiceHandler

func RegisterDependencyServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterDependencyServiceHandler registers the http handlers for service DependencyService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterDependencyServiceHandlerClient

func RegisterDependencyServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DependencyServiceClient) error

RegisterDependencyServiceHandlerClient registers the http handlers for service DependencyService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "DependencyServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "DependencyServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "DependencyServiceClient" to call the correct interceptors.

func RegisterDependencyServiceHandlerFromEndpoint

func RegisterDependencyServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterDependencyServiceHandlerFromEndpoint is same as RegisterDependencyServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterDependencyServiceHandlerServer

func RegisterDependencyServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server DependencyServiceServer) error

RegisterDependencyServiceHandlerServer registers the http handlers for service DependencyService to "mux". UnaryRPC :call DependencyServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterDependencyServiceHandlerFromEndpoint instead.

func RegisterDependencyServiceServer

func RegisterDependencyServiceServer(s grpc.ServiceRegistrar, srv DependencyServiceServer)

func RegisterModuleServiceHandler

func RegisterModuleServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterModuleServiceHandler registers the http handlers for service ModuleService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterModuleServiceHandlerClient

func RegisterModuleServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ModuleServiceClient) error

RegisterModuleServiceHandlerClient registers the http handlers for service ModuleService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ModuleServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ModuleServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ModuleServiceClient" to call the correct interceptors.

func RegisterModuleServiceHandlerFromEndpoint

func RegisterModuleServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterModuleServiceHandlerFromEndpoint is same as RegisterModuleServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterModuleServiceHandlerServer

func RegisterModuleServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ModuleServiceServer) error

RegisterModuleServiceHandlerServer registers the http handlers for service ModuleService to "mux". UnaryRPC :call ModuleServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterModuleServiceHandlerFromEndpoint instead.

func RegisterModuleServiceServer

func RegisterModuleServiceServer(s grpc.ServiceRegistrar, srv ModuleServiceServer)

func RegisterSearchServiceServer added in v0.1.9

func RegisterSearchServiceServer(s grpc.ServiceRegistrar, srv SearchServiceServer)

func RegisterSourceServiceHandler

func RegisterSourceServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterSourceServiceHandler registers the http handlers for service SourceService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterSourceServiceHandlerClient

func RegisterSourceServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SourceServiceClient) error

RegisterSourceServiceHandlerClient registers the http handlers for service SourceService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SourceServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SourceServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SourceServiceClient" to call the correct interceptors.

func RegisterSourceServiceHandlerFromEndpoint

func RegisterSourceServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterSourceServiceHandlerFromEndpoint is same as RegisterSourceServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterSourceServiceHandlerServer

func RegisterSourceServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SourceServiceServer) error

RegisterSourceServiceHandlerServer registers the http handlers for service SourceService to "mux". UnaryRPC :call SourceServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSourceServiceHandlerFromEndpoint instead.

func RegisterSourceServiceServer

func RegisterSourceServiceServer(s grpc.ServiceRegistrar, srv SourceServiceServer)

Types

type Dependency

type Dependency struct {
	Depends *schema.Depends `protobuf:"bytes,1,opt,name=depends,proto3" json:"depends,omitempty"`
	Module  *schema.Module  `protobuf:"bytes,2,opt,name=module,proto3" json:"module,omitempty"`
	// contains filtered or unexported fields
}

func (*Dependency) Descriptor deprecated

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

Deprecated: Use Dependency.ProtoReflect.Descriptor instead.

func (*Dependency) GetDepends

func (x *Dependency) GetDepends() *schema.Depends

func (*Dependency) GetModule

func (x *Dependency) GetModule() *schema.Module

func (*Dependency) ProtoMessage

func (*Dependency) ProtoMessage()

func (*Dependency) ProtoReflect added in v0.3.2

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

func (*Dependency) Reset

func (x *Dependency) Reset()

func (*Dependency) String

func (x *Dependency) String() string

type DependencyRequest

type DependencyRequest struct {
	Language string `protobuf:"bytes,1,opt,name=language,proto3" json:"language,omitempty"`
	// Deprecated: Do not use.
	Organization string `protobuf:"bytes,5,opt,name=organization,proto3" json:"organization,omitempty"` // use name
	// Deprecated: Do not use.
	Module string `protobuf:"bytes,6,opt,name=module,proto3" json:"module,omitempty"` // use name
	Name   string `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*DependencyRequest) Descriptor deprecated

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

Deprecated: Use DependencyRequest.ProtoReflect.Descriptor instead.

func (*DependencyRequest) GetLanguage

func (x *DependencyRequest) GetLanguage() string

func (*DependencyRequest) GetModule deprecated

func (x *DependencyRequest) GetModule() string

Deprecated: Do not use.

func (*DependencyRequest) GetName added in v0.1.16

func (x *DependencyRequest) GetName() string

func (*DependencyRequest) GetOrganization deprecated

func (x *DependencyRequest) GetOrganization() string

Deprecated: Do not use.

func (*DependencyRequest) ProtoMessage

func (*DependencyRequest) ProtoMessage()

func (*DependencyRequest) ProtoReflect added in v0.3.2

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

func (*DependencyRequest) Reset

func (x *DependencyRequest) Reset()

func (*DependencyRequest) String

func (x *DependencyRequest) String() string

type DependencyServiceClient

type DependencyServiceClient interface {
	ListDependents(ctx context.Context, in *DependencyRequest, opts ...grpc.CallOption) (*ListDependentsResponse, error)
	ListDependencies(ctx context.Context, in *DependencyRequest, opts ...grpc.CallOption) (*ListDependenciesResponse, error)
}

DependencyServiceClient is the client API for DependencyService 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.

type DependencyServiceServer

type DependencyServiceServer interface {
	ListDependents(context.Context, *DependencyRequest) (*ListDependentsResponse, error)
	ListDependencies(context.Context, *DependencyRequest) (*ListDependenciesResponse, error)
	// contains filtered or unexported methods
}

DependencyServiceServer is the server API for DependencyService service. All implementations must embed UnimplementedDependencyServiceServer for forward compatibility

type ListDependenciesResponse

type ListDependenciesResponse struct {
	Dependencies []*Dependency `protobuf:"bytes,1,rep,name=dependencies,proto3" json:"dependencies,omitempty"`
	// contains filtered or unexported fields
}

func (*ListDependenciesResponse) Descriptor deprecated

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

Deprecated: Use ListDependenciesResponse.ProtoReflect.Descriptor instead.

func (*ListDependenciesResponse) GetDependencies

func (x *ListDependenciesResponse) GetDependencies() []*Dependency

func (*ListDependenciesResponse) ProtoMessage

func (*ListDependenciesResponse) ProtoMessage()

func (*ListDependenciesResponse) ProtoReflect added in v0.3.2

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

func (*ListDependenciesResponse) Reset

func (x *ListDependenciesResponse) Reset()

func (*ListDependenciesResponse) String

func (x *ListDependenciesResponse) String() string

type ListDependentsResponse

type ListDependentsResponse struct {
	Dependents []*Dependency `protobuf:"bytes,1,rep,name=dependents,proto3" json:"dependents,omitempty"`
	// contains filtered or unexported fields
}

func (*ListDependentsResponse) Descriptor deprecated

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

Deprecated: Use ListDependentsResponse.ProtoReflect.Descriptor instead.

func (*ListDependentsResponse) GetDependents

func (x *ListDependentsResponse) GetDependents() []*Dependency

func (*ListDependentsResponse) ProtoMessage

func (*ListDependentsResponse) ProtoMessage()

func (*ListDependentsResponse) ProtoReflect added in v0.3.2

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

func (*ListDependentsResponse) Reset

func (x *ListDependentsResponse) Reset()

func (*ListDependentsResponse) String

func (x *ListDependentsResponse) String() string

type ListManagedResponse

type ListManagedResponse struct {
	Modules []*ManagedModule `protobuf:"bytes,1,rep,name=modules,proto3" json:"modules,omitempty"`
	// contains filtered or unexported fields
}

func (*ListManagedResponse) Descriptor deprecated

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

Deprecated: Use ListManagedResponse.ProtoReflect.Descriptor instead.

func (*ListManagedResponse) GetModules

func (x *ListManagedResponse) GetModules() []*ManagedModule

func (*ListManagedResponse) ProtoMessage

func (*ListManagedResponse) ProtoMessage()

func (*ListManagedResponse) ProtoReflect added in v0.3.2

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

func (*ListManagedResponse) Reset

func (x *ListManagedResponse) Reset()

func (*ListManagedResponse) String

func (x *ListManagedResponse) String() string

type ListModuleResponse

type ListModuleResponse struct {
	Page    int32            `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	Count   int32            `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	Modules []*schema.Module `protobuf:"bytes,3,rep,name=modules,proto3" json:"modules,omitempty"`
	// contains filtered or unexported fields
}

func (*ListModuleResponse) Descriptor deprecated

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

Deprecated: Use ListModuleResponse.ProtoReflect.Descriptor instead.

func (*ListModuleResponse) GetCount

func (x *ListModuleResponse) GetCount() int32

func (*ListModuleResponse) GetModules

func (x *ListModuleResponse) GetModules() []*schema.Module

func (*ListModuleResponse) GetPage

func (x *ListModuleResponse) GetPage() int32

func (*ListModuleResponse) ProtoMessage

func (*ListModuleResponse) ProtoMessage()

func (*ListModuleResponse) ProtoReflect added in v0.3.2

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

func (*ListModuleResponse) Reset

func (x *ListModuleResponse) Reset()

func (*ListModuleResponse) String

func (x *ListModuleResponse) String() string

type ListRequest

type ListRequest struct {
	Page  int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRequest) Descriptor deprecated

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

Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.

func (*ListRequest) GetCount

func (x *ListRequest) GetCount() int32

func (*ListRequest) GetPage

func (x *ListRequest) GetPage() int32

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) ProtoReflect added in v0.3.2

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

func (*ListRequest) Reset

func (x *ListRequest) Reset()

func (*ListRequest) String

func (x *ListRequest) String() string

type ListSourceResponse

type ListSourceResponse struct {
	Page    int32            `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	Count   int32            `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	Sources []*schema.Source `protobuf:"bytes,3,rep,name=sources,proto3" json:"sources,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSourceResponse) Descriptor deprecated

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

Deprecated: Use ListSourceResponse.ProtoReflect.Descriptor instead.

func (*ListSourceResponse) GetCount

func (x *ListSourceResponse) GetCount() int32

func (*ListSourceResponse) GetPage

func (x *ListSourceResponse) GetPage() int32

func (*ListSourceResponse) GetSources

func (x *ListSourceResponse) GetSources() []*schema.Source

func (*ListSourceResponse) ProtoMessage

func (*ListSourceResponse) ProtoMessage()

func (*ListSourceResponse) ProtoReflect added in v0.3.2

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

func (*ListSourceResponse) Reset

func (x *ListSourceResponse) Reset()

func (*ListSourceResponse) String

func (x *ListSourceResponse) String() string

type ListSourcesResponse

type ListSourcesResponse struct {
	Sources []*ManagedSource `protobuf:"bytes,1,rep,name=sources,proto3" json:"sources,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSourcesResponse) Descriptor deprecated

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

Deprecated: Use ListSourcesResponse.ProtoReflect.Descriptor instead.

func (*ListSourcesResponse) GetSources

func (x *ListSourcesResponse) GetSources() []*ManagedSource

func (*ListSourcesResponse) ProtoMessage

func (*ListSourcesResponse) ProtoMessage()

func (*ListSourcesResponse) ProtoReflect added in v0.3.2

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

func (*ListSourcesResponse) Reset

func (x *ListSourcesResponse) Reset()

func (*ListSourcesResponse) String

func (x *ListSourcesResponse) String() string

type ManagedModule

type ManagedModule struct {
	Manages *schema.Manages `protobuf:"bytes,1,opt,name=manages,proto3" json:"manages,omitempty"`
	Module  *schema.Module  `protobuf:"bytes,2,opt,name=module,proto3" json:"module,omitempty"`
	// contains filtered or unexported fields
}

func (*ManagedModule) Descriptor deprecated

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

Deprecated: Use ManagedModule.ProtoReflect.Descriptor instead.

func (*ManagedModule) GetManages

func (x *ManagedModule) GetManages() *schema.Manages

func (*ManagedModule) GetModule

func (x *ManagedModule) GetModule() *schema.Module

func (*ManagedModule) ProtoMessage

func (*ManagedModule) ProtoMessage()

func (*ManagedModule) ProtoReflect added in v0.3.2

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

func (*ManagedModule) Reset

func (x *ManagedModule) Reset()

func (*ManagedModule) String

func (x *ManagedModule) String() string

type ManagedSource

type ManagedSource struct {
	Source  *schema.Source  `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	Manages *schema.Manages `protobuf:"bytes,2,opt,name=manages,proto3" json:"manages,omitempty"`
	// contains filtered or unexported fields
}

func (*ManagedSource) Descriptor deprecated

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

Deprecated: Use ManagedSource.ProtoReflect.Descriptor instead.

func (*ManagedSource) GetManages

func (x *ManagedSource) GetManages() *schema.Manages

func (*ManagedSource) GetSource

func (x *ManagedSource) GetSource() *schema.Source

func (*ManagedSource) ProtoMessage

func (*ManagedSource) ProtoMessage()

func (*ManagedSource) ProtoReflect added in v0.3.2

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

func (*ManagedSource) Reset

func (x *ManagedSource) Reset()

func (*ManagedSource) String

func (x *ManagedSource) String() string

type ModuleServiceClient

type ModuleServiceClient interface {
	List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListModuleResponse, error)
	ListSources(ctx context.Context, in *schema.Module, opts ...grpc.CallOption) (*ListSourcesResponse, error)
	ListManaged(ctx context.Context, in *schema.Source, opts ...grpc.CallOption) (*ListManagedResponse, error)
}

ModuleServiceClient is the client API for ModuleService 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.

type ModuleServiceServer

type ModuleServiceServer interface {
	List(context.Context, *ListRequest) (*ListModuleResponse, error)
	ListSources(context.Context, *schema.Module) (*ListSourcesResponse, error)
	ListManaged(context.Context, *schema.Source) (*ListManagedResponse, error)
	// contains filtered or unexported methods
}

ModuleServiceServer is the server API for ModuleService service. All implementations must embed UnimplementedModuleServiceServer for forward compatibility

type SearchRequest added in v0.1.9

type SearchRequest struct {
	Cancel         bool               `protobuf:"varint,1,opt,name=cancel,proto3" json:"cancel,omitempty"`
	DependentsOf   *DependencyRequest `protobuf:"bytes,5,opt,name=dependentsOf,proto3" json:"dependentsOf,omitempty"`
	DependenciesOf *DependencyRequest `protobuf:"bytes,6,opt,name=dependenciesOf,proto3" json:"dependenciesOf,omitempty"`
	ModulesFor     *schema.Source     `protobuf:"bytes,7,opt,name=modulesFor,proto3" json:"modulesFor,omitempty"`
	SourcesFor     *schema.Module     `protobuf:"bytes,8,opt,name=sourcesFor,proto3" json:"sourcesFor,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchRequest) Descriptor deprecated added in v0.1.9

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

Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.

func (*SearchRequest) GetCancel added in v0.1.9

func (x *SearchRequest) GetCancel() bool

func (*SearchRequest) GetDependenciesOf added in v0.1.9

func (x *SearchRequest) GetDependenciesOf() *DependencyRequest

func (*SearchRequest) GetDependentsOf added in v0.1.9

func (x *SearchRequest) GetDependentsOf() *DependencyRequest

func (*SearchRequest) GetModulesFor added in v0.1.9

func (x *SearchRequest) GetModulesFor() *schema.Source

func (*SearchRequest) GetSourcesFor added in v0.1.9

func (x *SearchRequest) GetSourcesFor() *schema.Module

func (*SearchRequest) ProtoMessage added in v0.1.9

func (*SearchRequest) ProtoMessage()

func (*SearchRequest) ProtoReflect added in v0.3.2

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

func (*SearchRequest) Reset added in v0.1.9

func (x *SearchRequest) Reset()

func (*SearchRequest) String added in v0.1.9

func (x *SearchRequest) String() string

type SearchResponse added in v0.1.9

type SearchResponse struct {
	Request      *SearchRequest   `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
	Dependents   []*Dependency    `protobuf:"bytes,5,rep,name=dependents,proto3" json:"dependents,omitempty"`
	Dependencies []*Dependency    `protobuf:"bytes,6,rep,name=dependencies,proto3" json:"dependencies,omitempty"`
	Modules      []*ManagedModule `protobuf:"bytes,7,rep,name=modules,proto3" json:"modules,omitempty"`
	Sources      []*ManagedSource `protobuf:"bytes,8,rep,name=sources,proto3" json:"sources,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchResponse) Descriptor deprecated added in v0.1.9

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

Deprecated: Use SearchResponse.ProtoReflect.Descriptor instead.

func (*SearchResponse) GetDependencies added in v0.1.9

func (x *SearchResponse) GetDependencies() []*Dependency

func (*SearchResponse) GetDependents added in v0.1.9

func (x *SearchResponse) GetDependents() []*Dependency

func (*SearchResponse) GetModules added in v0.1.9

func (x *SearchResponse) GetModules() []*ManagedModule

func (*SearchResponse) GetRequest added in v0.1.9

func (x *SearchResponse) GetRequest() *SearchRequest

func (*SearchResponse) GetSources added in v0.1.9

func (x *SearchResponse) GetSources() []*ManagedSource

func (*SearchResponse) ProtoMessage added in v0.1.9

func (*SearchResponse) ProtoMessage()

func (*SearchResponse) ProtoReflect added in v0.3.2

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

func (*SearchResponse) Reset added in v0.1.9

func (x *SearchResponse) Reset()

func (*SearchResponse) String added in v0.1.9

func (x *SearchResponse) String() string

type SearchServiceClient added in v0.1.9

type SearchServiceClient interface {
	Search(ctx context.Context, opts ...grpc.CallOption) (SearchService_SearchClient, error)
	BreadthFirstSearch(ctx context.Context, opts ...grpc.CallOption) (SearchService_BreadthFirstSearchClient, error)
	DepthFirstSearch(ctx context.Context, opts ...grpc.CallOption) (SearchService_DepthFirstSearchClient, error)
}

SearchServiceClient is the client API for SearchService 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 NewSearchServiceClient added in v0.1.9

func NewSearchServiceClient(cc grpc.ClientConnInterface) SearchServiceClient

type SearchServiceServer added in v0.1.9

type SearchServiceServer interface {
	Search(SearchService_SearchServer) error
	BreadthFirstSearch(SearchService_BreadthFirstSearchServer) error
	DepthFirstSearch(SearchService_DepthFirstSearchServer) error
	// contains filtered or unexported methods
}

SearchServiceServer is the server API for SearchService service. All implementations must embed UnimplementedSearchServiceServer for forward compatibility

type SearchService_BreadthFirstSearchClient added in v0.1.9

type SearchService_BreadthFirstSearchClient interface {
	Send(*SearchRequest) error
	Recv() (*SearchResponse, error)
	grpc.ClientStream
}

type SearchService_BreadthFirstSearchServer added in v0.1.9

type SearchService_BreadthFirstSearchServer interface {
	Send(*SearchResponse) error
	Recv() (*SearchRequest, error)
	grpc.ServerStream
}

type SearchService_DepthFirstSearchClient added in v0.1.9

type SearchService_DepthFirstSearchClient interface {
	Send(*SearchRequest) error
	Recv() (*SearchResponse, error)
	grpc.ClientStream
}

type SearchService_DepthFirstSearchServer added in v0.1.9

type SearchService_DepthFirstSearchServer interface {
	Send(*SearchResponse) error
	Recv() (*SearchRequest, error)
	grpc.ServerStream
}

type SearchService_SearchClient added in v0.1.9

type SearchService_SearchClient interface {
	Send(*SearchRequest) error
	Recv() (*SearchResponse, error)
	grpc.ClientStream
}

type SearchService_SearchServer added in v0.1.9

type SearchService_SearchServer interface {
	Send(*SearchResponse) error
	Recv() (*SearchRequest, error)
	grpc.ServerStream
}

type SourceRequest

type SourceRequest struct {
	Source          *schema.Source                   `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	ManagementFiles []*deps.DependencyManagementFile `protobuf:"bytes,2,rep,name=managementFiles,proto3" json:"managementFiles,omitempty"`
	// contains filtered or unexported fields
}

func (*SourceRequest) Descriptor deprecated

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

Deprecated: Use SourceRequest.ProtoReflect.Descriptor instead.

func (*SourceRequest) GetManagementFiles

func (x *SourceRequest) GetManagementFiles() []*deps.DependencyManagementFile

func (*SourceRequest) GetSource

func (x *SourceRequest) GetSource() *schema.Source

func (*SourceRequest) ProtoMessage

func (*SourceRequest) ProtoMessage()

func (*SourceRequest) ProtoReflect added in v0.3.2

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

func (*SourceRequest) Reset

func (x *SourceRequest) Reset()

func (*SourceRequest) String

func (x *SourceRequest) String() string

type SourceServiceClient

type SourceServiceClient interface {
	List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListSourceResponse, error)
	Track(ctx context.Context, in *SourceRequest, opts ...grpc.CallOption) (*TrackResponse, error)
}

SourceServiceClient is the client API for SourceService 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.

type SourceServiceServer

type SourceServiceServer interface {
	List(context.Context, *ListRequest) (*ListSourceResponse, error)
	Track(context.Context, *SourceRequest) (*TrackResponse, error)
	// contains filtered or unexported methods
}

SourceServiceServer is the server API for SourceService service. All implementations must embed UnimplementedSourceServiceServer for forward compatibility

type TrackResponse

type TrackResponse struct {
	Tracking bool `protobuf:"varint,1,opt,name=tracking,proto3" json:"tracking,omitempty"`
	// contains filtered or unexported fields
}

func (*TrackResponse) Descriptor deprecated

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

Deprecated: Use TrackResponse.ProtoReflect.Descriptor instead.

func (*TrackResponse) GetTracking

func (x *TrackResponse) GetTracking() bool

func (*TrackResponse) ProtoMessage

func (*TrackResponse) ProtoMessage()

func (*TrackResponse) ProtoReflect added in v0.3.2

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

func (*TrackResponse) Reset

func (x *TrackResponse) Reset()

func (*TrackResponse) String

func (x *TrackResponse) String() string

type UnimplementedDependencyServiceServer

type UnimplementedDependencyServiceServer struct {
}

UnimplementedDependencyServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedDependencyServiceServer) ListDependencies

func (UnimplementedDependencyServiceServer) ListDependents

type UnimplementedModuleServiceServer

type UnimplementedModuleServiceServer struct {
}

UnimplementedModuleServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedModuleServiceServer) List

func (UnimplementedModuleServiceServer) ListManaged

func (UnimplementedModuleServiceServer) ListSources

type UnimplementedSearchServiceServer added in v0.1.9

type UnimplementedSearchServiceServer struct {
}

UnimplementedSearchServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedSearchServiceServer) BreadthFirstSearch added in v0.1.9

func (UnimplementedSearchServiceServer) DepthFirstSearch added in v0.1.9

func (UnimplementedSearchServiceServer) Search added in v0.1.9

type UnimplementedSourceServiceServer

type UnimplementedSourceServiceServer struct {
}

UnimplementedSourceServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedSourceServiceServer) List

func (UnimplementedSourceServiceServer) Track

type UnsafeDependencyServiceServer added in v0.3.2

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

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

type UnsafeModuleServiceServer added in v0.3.2

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

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

type UnsafeSearchServiceServer added in v0.3.2

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

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

type UnsafeSourceServiceServer added in v0.3.2

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

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

Jump to

Keyboard shortcuts

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