genrmq

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gen

func Gen(c *coder.Coder, r coder.CompileResult)

Types

type Compiler

type Compiler struct {
}

func (*Compiler) Compile

func (*Compiler) Compile(lines []string) (coder.CompileResult, error)

func (*Compiler) Name

func (*Compiler) Name() string

type Config

type Config struct {
	Durable    bool
	AutoDelete bool
	Exclusive  bool
	Internal   bool
	Nowait     bool
}

type Exchange

type Exchange struct {
	Name   string
	Kind   string
	Config Config
}

type Pub

type Pub struct {
	Comments []string
	Name     string
	GoType   string
	Exchange string
}

type Queue

type Queue struct {
	Name   string
	Config Config
	Binds  []QueueBind
}

type QueueBind

type QueueBind struct {
	ExhName string
	Key     string
	Nowait  bool
}

type RMQFile

type RMQFile struct {
	cfg.CodeBase

	Exchanges []Exchange
	Queues    []Queue
	Structs   []coder.GoStruct

	Subs []Sub
	Pubs []Pub
}

func Compile

func Compile(config *cfg.Config) (*RMQFile, error)

type Sub

type Sub struct {
	Comments []string
	Name     string
	GoType   string
	Queue    string
}

Jump to

Keyboard shortcuts

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