adcass

package
v0.0.0-...-5dcd16a Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Cassandra backend for gold.ArticleDirectEX.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize(session *gocql.Session)

Types

type Storage

type Storage struct {
	Session  *gocql.Session
	OnUpsert gocql.Consistency
}

func (*Storage) ArticleDirectGet

func (s *Storage) ArticleDirectGet(id []byte, head, body bool) *newspolyglot.ArticleObject

func (*Storage) ArticleDirectOverview

func (s *Storage) ArticleDirectOverview(id []byte) *newspolyglot.ArticleOverview

func (*Storage) ArticleDirectRollback

func (s *Storage) ArticleDirectRollback(id []byte)

func (*Storage) ArticleDirectStat

func (s *Storage) ArticleDirectStat(id []byte) bool

func (*Storage) ArticleDirectStore

func (s *Storage) ArticleDirectStore(exp uint64, ov *newspolyglot.ArticleOverview, obj *newspolyglot.ArticleObject) (err error)

Jump to

Keyboard shortcuts

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