Documentation
¶
Index ¶
- Variables
- func Error(code string) error
- func Read_Config(home string)
- func Register(method, resource string, handler Controller)
- func Route_Request(ctx *Context) error
- func Set_Request_Id(ctx *Context) error
- type AWSError
- type CcowError
- type Context
- func (ctx *Context) Empty(code int) error
- func (ctx *Context) Finalize(err error)
- func (ctx *Context) Read(chunk []byte) (int, error)
- func (ctx *Context) Set(key, val string)
- func (ctx *Context) Set_Uint(key string, val uint64)
- func (ctx *Context) Write(chunk []byte) error
- func (ctx *Context) XML(tag string, needns bool) *XML_Writer
- type Controller
- type XML_Writer
Constants ¶
This section is empty.
Variables ¶
View Source
var Config struct { Port int `json:"port"` Port_Secure int `json:"port_secure"` Chunk_Size int `json:"chunk_size"` Cluster_Name string `json:"cluster_name"` Iovarr_Size int `json:"iovarr_size"` Tenant_Name string `json:"tenant_name"` Number_of_versions int `json:"number_of_versions"` Debug bool `json:"debug"` No_Cleanup bool `json:"no_cleanup"` Need_MD5 bool `json:"need_md5"` Region string `json:"region"` Domain string `json:"domain"` }
View Source
var Routes map[string]Controller
View Source
var Supported map[string]bool
Functions ¶
func Read_Config ¶
func Read_Config(home string)
func Register ¶
func Register(method, resource string, handler Controller)
func Route_Request ¶
func Set_Request_Id ¶
Types ¶
type Context ¶
type Context struct { Cluster string Tenant string Method string Bucket string Object string Subresource string Resource string Query map[string]string Headers map[string]string Vhost bool // contains filtered or unexported fields }
func Parse_Request ¶
func Parse_Request(req *http.Request, res http.ResponseWriter) *Context
type Controller ¶
type XML_Writer ¶
type XML_Writer struct {
// contains filtered or unexported fields
}
func (*XML_Writer) Encode ¶
func (xw *XML_Writer) Encode(v interface{})
func (*XML_Writer) End ¶
func (xw *XML_Writer) End()
func (*XML_Writer) Tag ¶
func (xw *XML_Writer) Tag(k, v string)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.