grpc

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallGrpcApi

func CallGrpcApi(pbFile string, target string, fullMethod string, req string, plugins ...Plugin) (string, error)

func FileHandler

func FileHandler(w http.ResponseWriter, r *http.Request)

func GetPbData

func GetPbData(key string) []byte

func IndexHandler

func IndexHandler(w http.ResponseWriter, r *http.Request)

func RegisterPb

func RegisterPb(key string, data []byte)

func SendPbData

func SendPbData() bool

func StartReceiveServer

func StartReceiveServer() error

Types

type Plugin

type Plugin interface {
	BeforeInvoke(context.Context, string, interface{}, interface{}) (context.Context, interface{}, interface{}, error)
}

Jump to

Keyboard shortcuts

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