util

package
v0.0.0-...-467dd59 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseChannelsConnection

func CloseChannelsConnection(conn *grpc.ClientConn)

func CloseMessageStoreConnection

func CloseMessageStoreConnection(conn *grpc.ClientConn)

func GetChannelsConnection

func GetChannelsConnection(c *gin.Context, df DialFactory) *grpc.ClientConn

func GetMessageStoreConnection

func GetMessageStoreConnection(c *gin.Context, df DialFactory) *grpc.ClientConn

func GetSignature

func GetSignature(input, key string) string

Types

type DialFactory

type DialFactory interface {
	GetMessageStoreCon() (*grpc.ClientConn, error)
	GetChannelsAPICon() (*grpc.ClientConn, error)
}

func MakeDialFactory

func MakeDialFactory(conf *config.Config) DialFactory

type DialFactoryImpl

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

func (DialFactoryImpl) GetChannelsAPICon

func (dfi DialFactoryImpl) GetChannelsAPICon() (*grpc.ClientConn, error)

func (DialFactoryImpl) GetMessageStoreCon

func (dfi DialFactoryImpl) GetMessageStoreCon() (*grpc.ClientConn, error)

Jump to

Keyboard shortcuts

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