fs

package
Version: v0.0.0-...-1161aef Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2019 License: BSD-3-Clause Imports: 8 Imported by: 1

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(repo string) string

ThreadType returns the notification thread type for this service.

Source Files

Jump to

Keyboard shortcuts

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