remstorage

package
v0.0.0-...-aaf6028 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Deprecated: Considered cruft right now.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	H     ClientHandler
	Shard string
}

func (*Client) ArticleDirectGet

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

func (*Client) ArticleDirectOverview

func (c *Client) ArticleDirectOverview(id []byte) *newspolyglot.ArticleOverview

func (*Client) ArticleDirectStat

func (c *Client) ArticleDirectStat(id []byte) bool

type ClientHandler

type ClientHandler interface {
	Do(req *fasthttp.Request, resp *fasthttp.Response) error
}

type Posting

type Posting struct {
	Headp *posting.HeadInfo
	Body  []byte
	Ngs   [][]byte
	Numbs []int64
}

type StorageService

type StorageService struct {
	ArticleDirect  newspolyglot.ArticleDirectDB
	ArticleGroup   newspolyglot.ArticleGroupDB
	ArticlePosting newspolyglot.ArticlePostingDB
}

func (*StorageService) Handle

func (s *StorageService) Handle(ctx *fasthttp.RequestCtx)

Jump to

Keyboard shortcuts

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