frameworks

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GrpcConfig types.IGrpcConfig

gRPC framework configurations

View Source
var HttpConfig types.IHttpServer

HTTP Configurations

View Source
var RabbitMQConfig types.IRabbitMQConfig

Initialize RabbitMQ Configuration.

View Source
var TcpConfig types.ITcpConfig

TCP Configurations

View Source
var WebSocketConfig types.IWebSocketServer

WebSocket Configurations

Functions

func Grpc

func Grpc() (disconnectors []func())

Run gRPC server and client

func Http

func Http() (disconnectors []func())

Start http service

func RabbitMQ

func RabbitMQ() (disconnectors []func())

Define rabbit service host and port

func Tcp

func Tcp() (disconnectors []func())

Start http service

func WebSocket

func WebSocket() (disconnectors []func())

Start WebSocket service

Types

type HttpServer added in v1.4.8

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

HTTP service struct

func (*HttpServer) Disconnect added in v1.5.0

func (r *HttpServer) Disconnect()

type RabbitPublisher

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

RabbitMQ publisher definitions.

func (*RabbitPublisher) Publish

func (r *RabbitPublisher) Publish(event types.IEvent) (err error)

Jump to

Keyboard shortcuts

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