thinkgo: github.com/thinkoner/thinkgo Index | Files | Directories

package thinkgo

import "github.com/thinkoner/thinkgo"

Index

Package Files

pipeline.go think.go

type Pipeline Uses

type Pipeline struct {
    // contains filtered or unexported fields
}

func NewPipeline Uses

func NewPipeline() *Pipeline

Pipeline returns a new Pipeline

func (*Pipeline) Passable Uses

func (p *Pipeline) Passable(passable *context.Request) *Pipeline

Passable set the request being sent through the pipeline.

func (*Pipeline) Pipe Uses

func (p *Pipeline) Pipe(m think.Handler) *Pipeline

Pipe Push a Middleware Handler to the pipeline

func (*Pipeline) Run Uses

func (p *Pipeline) Run() interface{}

Run run the pipeline

func (*Pipeline) ServeHTTP Uses

func (p *Pipeline) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP

func (*Pipeline) Through Uses

func (p *Pipeline) Through(hls []think.Handler) *Pipeline

Pipe Batch push Middleware Handlers to the pipeline

type Think Uses

type Think struct {
    App *think.Application
    // contains filtered or unexported fields
}

func New Uses

func New() *Think

New Create The Application

func (*Think) RegisterConfig Uses

func (th *Think) RegisterConfig(register registerConfigFunc)

RegisterConfig Register Config

func (*Think) RegisterHandler Uses

func (th *Think) RegisterHandler(handler think.HandlerFunc)

RegisterConfig Register Config

func (*Think) RegisterRoute Uses

func (th *Think) RegisterRoute(register registerRouteFunc)

RegisterRoute Register Route

func (*Think) Run Uses

func (th *Think) Run(params ...string)

Run thinkgo application. Run() default run on HttpPort Run("localhost") Run(":9011") Run("127.0.0.1:9011")

Directories

PathSynopsis
cache
config
context
filesystem
helper
log
log/formatter
log/handler
log/record
router
session
think
view

Package thinkgo imports 12 packages (graph). Updated 2019-12-14. Refresh now. Tools for package owners.