query

package
v0.0.0-...-53c0529 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// message
	GetUnreadMessage = "get_unread_message"
	GetMessage       = "get_message"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type QueryHandler

type QueryHandler struct {
	GetUnreadMessageHandler getUnreadMessageHandler
	GetMessageHandler       getMessageHandler
}

func CreateQueryHandler

func CreateQueryHandler(timestamp *model.Timestamp) *QueryHandler

func (QueryHandler) GetQueryHandler

func (queryHandler QueryHandler) GetQueryHandler(t string) QueryHandlerInterface

func (*QueryHandler) Init

func (queryHandler *QueryHandler) Init(timestamp *model.Timestamp) *QueryHandler

type QueryHandlerInterface

type QueryHandlerInterface interface {
	Query(db.DB, types.RequestQuery) types.ResponseQuery
}

Jump to

Keyboard shortcuts

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