common

package
v0.8.12 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 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 - GRPC 상태 코드 에러로 변환

func ConvertToMessage

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

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

func ConvertToOutput

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

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

func CopySrcToDest

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

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

func NewGrpcStatusErr

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

NewGrpcStatusErr - GRPC 상태 코드 에러 생성

Types

type CBConnection

type CBConnection struct {
	Conn *grpc.ClientConn
}

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

func NewCBConnection

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

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

type CBServer

type CBServer struct {
	Server *grpc.Server
}

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

func NewCBServer

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

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

Jump to

Keyboard shortcuts

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