Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SearchArgs ¶
type SearchArgs struct { // Remote is the remote path. Remote string `json:"remote"` // Branch is the branch name. Branch string `json:"branch"` // Path is the file path. Path string `json:"path"` }
SearchArgs contains the args.
type SearchReply ¶
type SearchReply struct { // Content contains file content. Content string `json:"content"` // Entries contains directory entries. Entries []*fs.DirEntry `json:"entries"` // IsDir specifies if the file is a directory. IsDir bool `json:"is_dir"` }
SearchReply contains the reply.
type Service ¶
Service wraps a remote and provides RPC.
func (*Service) Search ¶
func (s *Service) Search(args *SearchArgs, reply *SearchReply) error
Search returns the contents of a file at the given remote path.
Click to show internal directories.
Click to hide internal directories.