context

package
v0.0.0-...-43fbf64 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ctx

type Ctx struct {
	C *gocql.Session // pointer to Cassandra

	S3     *s3.S3 // pointer to S3
	Bucket string // name of S3 bucket

	Debug   *log.Logger
	Info    *log.Logger
	Warning *log.Logger
}

func (*Ctx) SetLogging

func (c *Ctx) SetLogging(file, level string)

type Request

type Request struct {
	Apikey     string           `json:"apikey"`
	Module     string           `json:"module"`
	Action     string           `json:"action"`
	Parameters *json.RawMessage `json:"parameters"`
}

type Response

type Response struct {
	Error  string      `json:"error"`
	Result interface{} `json:"result"`
}

func ErrorResponse

func ErrorResponse(err string) *Response

Jump to

Keyboard shortcuts

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