kit: github.com/go-kit/kit/cmd/kitgen/templates Index | Files

package foo

import "github.com/go-kit/kit/cmd/kitgen/templates"

Index

Package Files

full.go

func DecodeExampleRequest Uses

func DecodeExampleRequest(_ context.Context, r *http.Request) (interface{}, error)

func EncodeExampleResponse Uses

func EncodeExampleResponse(_ context.Context, w http.ResponseWriter, response interface{}) error

func NewHTTPHandler Uses

func NewHTTPHandler(endpoints Endpoints) http.Handler

type Endpoints Uses

type Endpoints struct {
    ExampleEndpoint endpoint.Endpoint
}

type ExampleRequest Uses

type ExampleRequest struct {
    I   int
    S   string
}

type ExampleResponse Uses

type ExampleResponse struct {
    S   string
    Err error
}

type ExampleService Uses

type ExampleService struct {
}

func (ExampleService) ExampleEndpoint Uses

func (f ExampleService) ExampleEndpoint(ctx context.Context, i int, s string) (string, error)

Package foo imports 6 packages (graph). Updated 2017-12-04. Refresh now. Tools for package owners.