daprdriver

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: MIT Imports: 14 Imported by: 7

README

dtmdriver-gozero

go-zero driver for supporting dtm

Documentation

Index

Constants

View Source
const (
	DriverName = "dtm-driver-dapr"

	SchemaHTTP        = "daprhttp"
	SchemaProxiedHTTP = "daprphttp"
	SchemaGrpc        = "daprgrpc"
	SchemaProxiedGrpc = "daprpgrpc"
)

Variables

This section is empty.

Functions

func AddrForGrpc

func AddrForGrpc(appid string, method string) string

func AddrForHTTP

func AddrForHTTP(appid string, method string) string

func AddrForProxiedGrpc

func AddrForProxiedGrpc(appid string, pathAndQuery string) string

func AddrForProxiedHTTP

func AddrForProxiedHTTP(appid string, pathAndQuery string) string

func NewDaprGrpcOldURL

func NewDaprGrpcOldURL(service string, grpcPath string) string

func NewDaprGrpcURL

func NewDaprGrpcURL(service string, method string) string

func PayloadForGrpc

func PayloadForGrpc(data []byte) *pb.InvokeServiceRequest

func Use

func Use()

Types

type DaprAddr

type DaprAddr struct {
	Schema     string
	Host       string
	Appid      string
	MethodName string // method name of dapr, or path of url without preceeding '/'
}

func ParseDaprUrl

func ParseDaprUrl(uri string) (DaprAddr, error)

Jump to

Keyboard shortcuts

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