Documentation ¶
Index ¶
- Variables
- type SampleServiceServer
- func (s *SampleServiceServer) GetGitCommit(ctx context.Context, req *drghs_v1.GetGitCommitRequest) (*drghs_v1.GitCommit, error)
- func (s *SampleServiceServer) ListFiles(ctx context.Context, req *drghs_v1.ListFilesRequest) (*drghs_v1.ListFilesResponse, error)
- func (s *SampleServiceServer) ListGitCommits(ctx context.Context, req *drghs_v1.ListGitCommitsRequest) (*drghs_v1.ListGitCommitsResponse, error)
- func (s *SampleServiceServer) ListRepositories(ctx context.Context, req *drghs_v1.ListRepositoriesRequest) (*drghs_v1.ListRepositoriesResponse, error)
- func (s *SampleServiceServer) ListSnippetVersions(ctx context.Context, req *drghs_v1.ListSnippetVersionsRequest) (*drghs_v1.ListSnippetVersionsResponse, error)
- func (s *SampleServiceServer) ListSnippets(ctx context.Context, req *drghs_v1.ListSnippetsRequest) (*drghs_v1.ListSnippetsResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNilPageToken is returned when a PageToken is nil ErrNilPageToken = errors.New("nil PageToken") )
Functions ¶
This section is empty.
Types ¶
type SampleServiceServer ¶
type SampleServiceServer struct {
// contains filtered or unexported fields
}
SampleServiceServer is an implementation of drghs_v1.SampleServiceServer
func NewSampleServiceServer ¶
func NewSampleServiceServer(c *samplr.Corpus) *SampleServiceServer
NewSampleServiceServer builds and returns a new SampleServiceServer
func (*SampleServiceServer) GetGitCommit ¶
func (s *SampleServiceServer) GetGitCommit(ctx context.Context, req *drghs_v1.GetGitCommitRequest) (*drghs_v1.GitCommit, error)
GetGitCommit returns the requested GitCommit (UNIMPLEMENTED)
func (*SampleServiceServer) ListFiles ¶
func (s *SampleServiceServer) ListFiles(ctx context.Context, req *drghs_v1.ListFilesRequest) (*drghs_v1.ListFilesResponse, error)
ListFiles returns the files in a given GitCommit (UNIMPLEMENTED)
func (*SampleServiceServer) ListGitCommits ¶
func (s *SampleServiceServer) ListGitCommits(ctx context.Context, req *drghs_v1.ListGitCommitsRequest) (*drghs_v1.ListGitCommitsResponse, error)
ListGitCommits returns the list of git commits for the given owner
func (*SampleServiceServer) ListRepositories ¶
func (s *SampleServiceServer) ListRepositories(ctx context.Context, req *drghs_v1.ListRepositoriesRequest) (*drghs_v1.ListRepositoriesResponse, error)
ListRepositories returns the list of Repositories tracked by the Corpus
func (*SampleServiceServer) ListSnippetVersions ¶
func (s *SampleServiceServer) ListSnippetVersions(ctx context.Context, req *drghs_v1.ListSnippetVersionsRequest) (*drghs_v1.ListSnippetVersionsResponse, error)
ListSnippetVersions retruns the SnippetVersions for the given Parent.
func (*SampleServiceServer) ListSnippets ¶
func (s *SampleServiceServer) ListSnippets(ctx context.Context, req *drghs_v1.ListSnippetsRequest) (*drghs_v1.ListSnippetsResponse, error)
ListSnippets returns the Snippets in the given Parent.
Click to show internal directories.
Click to hide internal directories.