protocol

package
v0.0.0-...-b63aa1a Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Type_name = map[int32]string{
	0: "GRPC",
	1: "REST",
	2: "REST2",
}
View Source
var Type_value = map[string]int32{
	"GRPC":  0,
	"REST":  1,
	"REST2": 2,
}

Functions

This section is empty.

Types

type Type

type Type int32

Framework 框架类型

const (
	//GRPC 表明契约实现方用 GRPC 框架实现
	Type_GRPC Type = 0
	//REST 表明契约实现方用RESTFul框架实现, 此时 URL 中可以带参数
	Type_REST Type = 1
	//REST2 表明契约实现方用特定的RESTFul框架实现, 此时URL为契约全名, 消息体均序列化到body中
	Type_REST2 Type = 2
)

func (Type) EnumDescriptor

func (Type) EnumDescriptor() ([]byte, []int)

func (Type) String

func (x Type) String() string

Jump to

Keyboard shortcuts

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