hh

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterService

func RegisterService(s giraffe_micro.Server, srv Service)

Types

type Client

type Client interface {
	TestTest(ctx context.Context, in *TestTestRequest) (*flow.Flow, error)
}

Client is the client API for hh service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewClient

func NewClient(c giraffe_micro.Client) Client

type Service

type Service interface {
	TestTest(context.Context, *TestTestRequest) (*flow.Flow, error)
}

Service is the server API for hh service.

type TestTestRequest

type TestTestRequest struct {
	//
	//版本号(时间戳-秒)
	Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version" form:"version"`
	//
	//流程标签
	Tags                 []string `protobuf:"bytes,2,rep,name=tags,proto3" json:"tags" form:"tags"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

TestTest请求

func (*TestTestRequest) Descriptor

func (*TestTestRequest) Descriptor() ([]byte, []int)

func (*TestTestRequest) GetTags

func (m *TestTestRequest) GetTags() []string

func (*TestTestRequest) GetVersion

func (m *TestTestRequest) GetVersion() int32

func (*TestTestRequest) ProtoMessage

func (*TestTestRequest) ProtoMessage()

func (*TestTestRequest) Reset

func (m *TestTestRequest) Reset()

func (*TestTestRequest) String

func (m *TestTestRequest) String() string

func (*TestTestRequest) Validate

func (this *TestTestRequest) Validate() error

func (*TestTestRequest) XXX_DiscardUnknown

func (m *TestTestRequest) XXX_DiscardUnknown()

func (*TestTestRequest) XXX_Marshal

func (m *TestTestRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TestTestRequest) XXX_Merge

func (m *TestTestRequest) XXX_Merge(src proto.Message)

func (*TestTestRequest) XXX_Size

func (m *TestTestRequest) XXX_Size() int

func (*TestTestRequest) XXX_Unmarshal

func (m *TestTestRequest) XXX_Unmarshal(b []byte) error

type TestTestResponseWrapper

type TestTestResponseWrapper struct {
	//
	//返回码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"`
	//
	//返回码解释
	CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"`
	//
	//错误详情
	Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"`
	//
	//返回数据
	Data                 *flow.Flow `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

TestTestApi返回

func (*TestTestResponseWrapper) Descriptor

func (*TestTestResponseWrapper) Descriptor() ([]byte, []int)

func (*TestTestResponseWrapper) GetCode

func (m *TestTestResponseWrapper) GetCode() int32

func (*TestTestResponseWrapper) GetCodeExplain

func (m *TestTestResponseWrapper) GetCodeExplain() string

func (*TestTestResponseWrapper) GetData

func (m *TestTestResponseWrapper) GetData() *flow.Flow

func (*TestTestResponseWrapper) GetError

func (m *TestTestResponseWrapper) GetError() string

func (*TestTestResponseWrapper) ProtoMessage

func (*TestTestResponseWrapper) ProtoMessage()

func (*TestTestResponseWrapper) Reset

func (m *TestTestResponseWrapper) Reset()

func (*TestTestResponseWrapper) String

func (m *TestTestResponseWrapper) String() string

func (*TestTestResponseWrapper) Validate

func (this *TestTestResponseWrapper) Validate() error

func (*TestTestResponseWrapper) XXX_DiscardUnknown

func (m *TestTestResponseWrapper) XXX_DiscardUnknown()

func (*TestTestResponseWrapper) XXX_Marshal

func (m *TestTestResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TestTestResponseWrapper) XXX_Merge

func (m *TestTestResponseWrapper) XXX_Merge(src proto.Message)

func (*TestTestResponseWrapper) XXX_Size

func (m *TestTestResponseWrapper) XXX_Size() int

func (*TestTestResponseWrapper) XXX_Unmarshal

func (m *TestTestResponseWrapper) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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