Back to godoc.org
github.com/dustin0708/go-chassis

Package chassis

v0.7.1
Latest Go to latest

The latest major version is .

Published: Aug 16, 2018 | License: Apache-2.0 | Module: github.com/dustin0708/go-chassis

Index

func Init

func Init() error

Init prepare the chassis framework runtime

func RegisterSchema

func RegisterSchema(serverName string, structPtr interface{}, opts ...server.RegisterOption)

RegisterSchema Register a API service to specific server by name You must register API first before Call Init

func Run

func Run()

Run bring up the service,it will not return error,instead just waiting for os signal,and shutdown gracefully

func SetDefaultConsumerChains

func SetDefaultConsumerChains(c map[string]string)

SetDefaultConsumerChains your custom chain map for Consumer,if there is no config, this default chain will take affect

func SetDefaultProviderChains

func SetDefaultProviderChains(c map[string]string)

SetDefaultProviderChains set your custom chain map for Provider,if there is no config, this default chain will take affect

type Schema

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

Schema struct for to represent schema info

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier