common

package
v0.6.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvGrpcStatusErr

func ConvGrpcStatusErr(err error, tag string, method string) error

ConvGrpcStatusErr is to GRPC 상태 코드 에러로 변환

func ConvertToMessage

func ConvertToMessage(inType string, inData string, obj interface{}) error

ConvertToMessage is to 입력 데이터를 grpc 메시지로 변환

func ConvertToOutput

func ConvertToOutput(outType string, obj interface{}) (string, error)

ConvertToOutput is to grpc 메시지를 출력포맷으로 변환

func CopySrcToDest

func CopySrcToDest(src interface{}, dest interface{}) error

CopySrcToDest is to 소스에서 타켓으로 데이터 복사

func NewGrpcStatusErr

func NewGrpcStatusErr(msg string, tag string, method string) error

NewGrpcStatusErr is to GRPC 상태 코드 에러 생성

Types

type CBConnection

type CBConnection struct {
	Conn *grpc.ClientConn
}

CBConnection is for CB-GRPC에서 사용하는 grpc 클라이언트를 위한 Wrapper 구조

func NewCBConnection

func NewCBConnection(gConf *config.GrpcClientConfig) (*CBConnection, io.Closer, error)

NewCBConnection is for 초기화된 grpc 클라이언트의 인스턴스 생성

type CBServer

type CBServer struct {
	Server *grpc.Server
}

CBServer is for CB-GRPC에서 사용하는 grpc 서버를 위한 Wrapper 구조

func NewCBServer

func NewCBServer(gConf *config.GrpcServerConfig) (*CBServer, io.Closer, error)

NewCBServer is to 초기화된 grpc 서버의 인스턴스 생성

Jump to

Keyboard shortcuts

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