albums

package
v0.0.0-...-ccb75e7 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ProtocolID is the ID of protocol
	ProtocolID = "albums"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Protocol

type Protocol struct {
	Store s.Store
}

Protocol defines the protocol of indexing blocks

func NewProtocol

func NewProtocol(store s.Store) *Protocol

NewProtocol creates a new protocol

func (*Protocol) CreateTables

func (p *Protocol) CreateTables(ctx context.Context) error

CreateTables creates tables

func (*Protocol) GetReview

func (p *Protocol) GetReview(reviewID uint64) (*protocol.Review, error)

GetReview fetches a review from the review table

func (*Protocol) PutReview

func (p *Protocol) PutReview(ctx context.Context, reviewInput *protocol.ReviewInput) (*protocol.Review, error)

PutReview stores a review in the review table

Jump to

Keyboard shortcuts

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