fs

package
v0.0.0-...-c858694 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package fs will implement change.Service using a virtual filesystem, once change.Service API is finalized. Until then, it uses hardcoded mock data to aid development and evaluation of change.Service API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// Reactions, if not nil, is temporarily used as a place to store reactions.
	Reactions reactions.Service
}

func (*Service) Count

func (*Service) Count(ctx context.Context, repo string, opt change.ListOptions) (uint64, error)

Count changes.

func (*Service) EditComment

func (s *Service) EditComment(ctx context.Context, repo string, id uint64, cr change.CommentRequest) (change.Comment, error)

func (*Service) Get

func (*Service) Get(ctx context.Context, repo string, id uint64) (change.Change, error)

Get a change.

func (*Service) GetDiff

func (*Service) GetDiff(ctx context.Context, repo string, id uint64, opt *change.GetDiffOptions) ([]byte, error)

Get a change diff.

func (*Service) List

func (*Service) List(ctx context.Context, repo string, opt change.ListOptions) ([]change.Change, error)

List changes.

func (*Service) ListCommits

func (*Service) ListCommits(ctx context.Context, repo string, id uint64) ([]change.Commit, error)

ListCommits lists change commits.

func (*Service) ListTimeline

func (svc *Service) ListTimeline(ctx context.Context, repo string, id uint64, opt *change.ListTimelineOptions) ([]interface{}, error)

ListTimeline lists timeline items (change.Comment, change.Review, change.TimelineItem) for specified change id.

func (*Service) ThreadType

func (*Service) ThreadType(ctx context.Context, repo string) (string, error)

Jump to

Keyboard shortcuts

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