route

package
v0.0.0-...-b7254cc Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallFunc

func CallFunc(tableName string, args ...interface{}) (result []reflect.Value, err error)

func Route

func Route(msg *sarama.ConsumerMessage, ctx *Ctx)

Types

type Config

type Config struct {
	ChatDataSource string
	Queue          struct {
		Group string
		Host  []string
		Topic []string
	}
	Log struct {
		Path string
	}
}

type Ctx

type Ctx struct {
	ChatDataBase *gorm.DB
}

func NewCtx

func NewCtx(config Config) *Ctx

type FuncCollection

type FuncCollection map[string]reflect.Value

type Routers

type Routers struct {
}

func (*Routers) PairChat

func (router *Routers) PairChat(msg *sarama.ConsumerMessage, ctx *Ctx, args ...interface{}) bool

Jump to

Keyboard shortcuts

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