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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseMessageStoreConnection

func CloseMessageStoreConnection(conn *grpc.ClientConn)

func GetMessageStoreConnection

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

Types

type DialFactory

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

func MakeDialFactory

func MakeDialFactory(conf *config.Config) DialFactory

type DialFactoryImpl

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

func (DialFactoryImpl) GetMessageStoreCon

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

func (DialFactoryImpl) GetOasisAPICon

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

Jump to

Keyboard shortcuts

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