aimgo_passport_http2_v1

package
v0.0.0-...-d0917f0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

README

接口列表

Document generated by protoc-gen-markdown. DO NOT EDIT.

KaixinService - TODO

WeiwuService - TODO

SayService - TODO

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Eplat_name = map[int32]string{
	0: "EPLAT_UNSPECIFIED",
	1: "EPLAT_UNKNOWN",
	2: "EPLAT_WEB",
	3: "EPLAT_M",
	4: "EPLAT_ANDROID",
	5: "EPLAT_IOS",
}
View Source
var Eplat_value = map[string]int32{
	"EPLAT_UNSPECIFIED": 0,
	"EPLAT_UNKNOWN":     1,
	"EPLAT_WEB":         2,
	"EPLAT_M":           3,
	"EPLAT_ANDROID":     4,
	"EPLAT_IOS":         5,
}

Functions

func RegisterKaixinServiceHandler

func RegisterKaixinServiceHandler(s server.Server, hdlr KaixinServiceHandler, opts ...server.HandlerOption) error

func RegisterKaixinServiceServer

func RegisterKaixinServiceServer(s *grpc.Server, srv KaixinServiceServer)

func RegisterSayServiceHandler

func RegisterSayServiceHandler(s server.Server, hdlr SayServiceHandler, opts ...server.HandlerOption) error

func RegisterSayServiceServer

func RegisterSayServiceServer(s *grpc.Server, srv SayServiceServer)

func RegisterWeiwuServiceHandler

func RegisterWeiwuServiceHandler(s server.Server, hdlr WeiwuServiceHandler, opts ...server.HandlerOption) error

func RegisterWeiwuServiceServer

func RegisterWeiwuServiceServer(s *grpc.Server, srv WeiwuServiceServer)

Types

type Data

type Data struct {
	Plat                 Eplat                `protobuf:"varint,1,opt,name=plat,proto3,enum=aimgo.passport.http2.v1.Eplat" json:"plat,omitempty"`
	Confmsg              string               `protobuf:"bytes,2,opt,name=confmsg,proto3" json:"confmsg,omitempty"`
	OrderTime            *timestamp.Timestamp `protobuf:"bytes,3,opt,name=order_time,json=orderTime,proto3" json:"order_time,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*Data) Descriptor

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

func (*Data) GetConfmsg

func (m *Data) GetConfmsg() string

func (*Data) GetOrderTime

func (m *Data) GetOrderTime() *timestamp.Timestamp

func (*Data) GetPlat

func (m *Data) GetPlat() Eplat

func (*Data) ProtoMessage

func (*Data) ProtoMessage()

func (*Data) Reset

func (m *Data) Reset()

func (*Data) String

func (m *Data) String() string

func (*Data) Validate

func (m *Data) Validate() error

Validate checks the field values on Data with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*Data) XXX_DiscardUnknown

func (m *Data) XXX_DiscardUnknown()

func (*Data) XXX_Marshal

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

func (*Data) XXX_Merge

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

func (*Data) XXX_Size

func (m *Data) XXX_Size() int

func (*Data) XXX_Unmarshal

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

type DataValidationError

type DataValidationError struct {
	// contains filtered or unexported fields
}

DataValidationError is the validation error returned by Data.Validate if the designated constraints aren't met.

func (DataValidationError) Cause

func (e DataValidationError) Cause() error

Cause function returns cause value.

func (DataValidationError) Error

func (e DataValidationError) Error() string

Error satisfies the builtin error interface

func (DataValidationError) ErrorName

func (e DataValidationError) ErrorName() string

ErrorName returns error name.

func (DataValidationError) Field

func (e DataValidationError) Field() string

Field function returns field value.

func (DataValidationError) Key

func (e DataValidationError) Key() bool

Key function returns key value.

func (DataValidationError) Reason

func (e DataValidationError) Reason() string

Reason function returns reason value.

type Eplat

type Eplat int32
const (
	//	开发心
	Eplat_EPLAT_UNSPECIFIED Eplat = 0
	Eplat_EPLAT_UNKNOWN     Eplat = 1
	Eplat_EPLAT_WEB         Eplat = 2
	Eplat_EPLAT_M           Eplat = 3
	Eplat_EPLAT_ANDROID     Eplat = 4
	Eplat_EPLAT_IOS         Eplat = 5
)

func (Eplat) EnumDescriptor

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

func (Eplat) String

func (x Eplat) String() string

type HahaRequest

type HahaRequest struct {
	//	请求名称
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*HahaRequest) Descriptor

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

func (*HahaRequest) GetName

func (m *HahaRequest) GetName() string

func (*HahaRequest) ProtoMessage

func (*HahaRequest) ProtoMessage()

func (*HahaRequest) Reset

func (m *HahaRequest) Reset()

func (*HahaRequest) String

func (m *HahaRequest) String() string

func (*HahaRequest) Validate

func (m *HahaRequest) Validate() error

Validate checks the field values on HahaRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*HahaRequest) XXX_DiscardUnknown

func (m *HahaRequest) XXX_DiscardUnknown()

func (*HahaRequest) XXX_Marshal

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

func (*HahaRequest) XXX_Merge

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

func (*HahaRequest) XXX_Size

func (m *HahaRequest) XXX_Size() int

func (*HahaRequest) XXX_Unmarshal

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

type HahaRequestValidationError

type HahaRequestValidationError struct {
	// contains filtered or unexported fields
}

HahaRequestValidationError is the validation error returned by HahaRequest.Validate if the designated constraints aren't met.

func (HahaRequestValidationError) Cause

Cause function returns cause value.

func (HahaRequestValidationError) Error

Error satisfies the builtin error interface

func (HahaRequestValidationError) ErrorName

func (e HahaRequestValidationError) ErrorName() string

ErrorName returns error name.

func (HahaRequestValidationError) Field

Field function returns field value.

func (HahaRequestValidationError) Key

Key function returns key value.

func (HahaRequestValidationError) Reason

Reason function returns reason value.

type HahaResponse

type HahaResponse struct {
	Code                 int32    `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg                  string   `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Data                 string   `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*HahaResponse) Descriptor

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

func (*HahaResponse) GetCode

func (m *HahaResponse) GetCode() int32

func (*HahaResponse) GetData

func (m *HahaResponse) GetData() string

func (*HahaResponse) GetMsg

func (m *HahaResponse) GetMsg() string

func (*HahaResponse) ProtoMessage

func (*HahaResponse) ProtoMessage()

func (*HahaResponse) Reset

func (m *HahaResponse) Reset()

func (*HahaResponse) String

func (m *HahaResponse) String() string

func (*HahaResponse) Validate

func (m *HahaResponse) Validate() error

Validate checks the field values on HahaResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*HahaResponse) XXX_DiscardUnknown

func (m *HahaResponse) XXX_DiscardUnknown()

func (*HahaResponse) XXX_Marshal

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

func (*HahaResponse) XXX_Merge

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

func (*HahaResponse) XXX_Size

func (m *HahaResponse) XXX_Size() int

func (*HahaResponse) XXX_Unmarshal

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

type HahaResponseValidationError

type HahaResponseValidationError struct {
	// contains filtered or unexported fields
}

HahaResponseValidationError is the validation error returned by HahaResponse.Validate if the designated constraints aren't met.

func (HahaResponseValidationError) Cause

Cause function returns cause value.

func (HahaResponseValidationError) Error

Error satisfies the builtin error interface

func (HahaResponseValidationError) ErrorName

func (e HahaResponseValidationError) ErrorName() string

ErrorName returns error name.

func (HahaResponseValidationError) Field

Field function returns field value.

func (HahaResponseValidationError) Key

Key function returns key value.

func (HahaResponseValidationError) Reason

Reason function returns reason value.

type HelloRequest

type HelloRequest struct {
	//	请求名称
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*HelloRequest) Descriptor

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

func (*HelloRequest) GetName

func (m *HelloRequest) GetName() string

func (*HelloRequest) ProtoMessage

func (*HelloRequest) ProtoMessage()

func (*HelloRequest) Reset

func (m *HelloRequest) Reset()

func (*HelloRequest) String

func (m *HelloRequest) String() string

func (*HelloRequest) Validate

func (m *HelloRequest) Validate() error

Validate checks the field values on HelloRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*HelloRequest) XXX_DiscardUnknown

func (m *HelloRequest) XXX_DiscardUnknown()

func (*HelloRequest) XXX_Marshal

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

func (*HelloRequest) XXX_Merge

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

func (*HelloRequest) XXX_Size

func (m *HelloRequest) XXX_Size() int

func (*HelloRequest) XXX_Unmarshal

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

type HelloRequestValidationError

type HelloRequestValidationError struct {
	// contains filtered or unexported fields
}

HelloRequestValidationError is the validation error returned by HelloRequest.Validate if the designated constraints aren't met.

func (HelloRequestValidationError) Cause

Cause function returns cause value.

func (HelloRequestValidationError) Error

Error satisfies the builtin error interface

func (HelloRequestValidationError) ErrorName

func (e HelloRequestValidationError) ErrorName() string

ErrorName returns error name.

func (HelloRequestValidationError) Field

Field function returns field value.

func (HelloRequestValidationError) Key

Key function returns key value.

func (HelloRequestValidationError) Reason

Reason function returns reason value.

type HelloResponse

type HelloResponse struct {
	Code                 int32    `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg                  string   `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Data                 []*Data  `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*HelloResponse) Descriptor

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

func (*HelloResponse) GetCode

func (m *HelloResponse) GetCode() int32

func (*HelloResponse) GetData

func (m *HelloResponse) GetData() []*Data

func (*HelloResponse) GetMsg

func (m *HelloResponse) GetMsg() string

func (*HelloResponse) ProtoMessage

func (*HelloResponse) ProtoMessage()

func (*HelloResponse) Reset

func (m *HelloResponse) Reset()

func (*HelloResponse) String

func (m *HelloResponse) String() string

func (*HelloResponse) Validate

func (m *HelloResponse) Validate() error

Validate checks the field values on HelloResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*HelloResponse) XXX_DiscardUnknown

func (m *HelloResponse) XXX_DiscardUnknown()

func (*HelloResponse) XXX_Marshal

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

func (*HelloResponse) XXX_Merge

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

func (*HelloResponse) XXX_Size

func (m *HelloResponse) XXX_Size() int

func (*HelloResponse) XXX_Unmarshal

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

type HelloResponseValidationError

type HelloResponseValidationError struct {
	// contains filtered or unexported fields
}

HelloResponseValidationError is the validation error returned by HelloResponse.Validate if the designated constraints aren't met.

func (HelloResponseValidationError) Cause

Cause function returns cause value.

func (HelloResponseValidationError) Error

Error satisfies the builtin error interface

func (HelloResponseValidationError) ErrorName

func (e HelloResponseValidationError) ErrorName() string

ErrorName returns error name.

func (HelloResponseValidationError) Field

Field function returns field value.

func (HelloResponseValidationError) Key

Key function returns key value.

func (HelloResponseValidationError) Reason

Reason function returns reason value.

type KaixinRequest

type KaixinRequest struct {
	//	请求名称
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*KaixinRequest) Descriptor

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

func (*KaixinRequest) GetName

func (m *KaixinRequest) GetName() string

func (*KaixinRequest) ProtoMessage

func (*KaixinRequest) ProtoMessage()

func (*KaixinRequest) Reset

func (m *KaixinRequest) Reset()

func (*KaixinRequest) String

func (m *KaixinRequest) String() string

func (*KaixinRequest) Validate

func (m *KaixinRequest) Validate() error

Validate checks the field values on KaixinRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*KaixinRequest) XXX_DiscardUnknown

func (m *KaixinRequest) XXX_DiscardUnknown()

func (*KaixinRequest) XXX_Marshal

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

func (*KaixinRequest) XXX_Merge

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

func (*KaixinRequest) XXX_Size

func (m *KaixinRequest) XXX_Size() int

func (*KaixinRequest) XXX_Unmarshal

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

type KaixinRequestValidationError

type KaixinRequestValidationError struct {
	// contains filtered or unexported fields
}

KaixinRequestValidationError is the validation error returned by KaixinRequest.Validate if the designated constraints aren't met.

func (KaixinRequestValidationError) Cause

Cause function returns cause value.

func (KaixinRequestValidationError) Error

Error satisfies the builtin error interface

func (KaixinRequestValidationError) ErrorName

func (e KaixinRequestValidationError) ErrorName() string

ErrorName returns error name.

func (KaixinRequestValidationError) Field

Field function returns field value.

func (KaixinRequestValidationError) Key

Key function returns key value.

func (KaixinRequestValidationError) Reason

Reason function returns reason value.

type KaixinResponse

type KaixinResponse struct {
	Code                 int32    `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg                  string   `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Data                 string   `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*KaixinResponse) Descriptor

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

func (*KaixinResponse) GetCode

func (m *KaixinResponse) GetCode() int32

func (*KaixinResponse) GetData

func (m *KaixinResponse) GetData() string

func (*KaixinResponse) GetMsg

func (m *KaixinResponse) GetMsg() string

func (*KaixinResponse) ProtoMessage

func (*KaixinResponse) ProtoMessage()

func (*KaixinResponse) Reset

func (m *KaixinResponse) Reset()

func (*KaixinResponse) String

func (m *KaixinResponse) String() string

func (*KaixinResponse) Validate

func (m *KaixinResponse) Validate() error

Validate checks the field values on KaixinResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*KaixinResponse) XXX_DiscardUnknown

func (m *KaixinResponse) XXX_DiscardUnknown()

func (*KaixinResponse) XXX_Marshal

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

func (*KaixinResponse) XXX_Merge

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

func (*KaixinResponse) XXX_Size

func (m *KaixinResponse) XXX_Size() int

func (*KaixinResponse) XXX_Unmarshal

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

type KaixinResponseValidationError

type KaixinResponseValidationError struct {
	// contains filtered or unexported fields
}

KaixinResponseValidationError is the validation error returned by KaixinResponse.Validate if the designated constraints aren't met.

func (KaixinResponseValidationError) Cause

Cause function returns cause value.

func (KaixinResponseValidationError) Error

Error satisfies the builtin error interface

func (KaixinResponseValidationError) ErrorName

func (e KaixinResponseValidationError) ErrorName() string

ErrorName returns error name.

func (KaixinResponseValidationError) Field

Field function returns field value.

func (KaixinResponseValidationError) Key

Key function returns key value.

func (KaixinResponseValidationError) Reason

Reason function returns reason value.

type KaixinService

type KaixinService interface {
	Kaixin(ctx context.Context, in *KaixinRequest, opts ...client.CallOption) (*KaixinResponse, error)
}

func NewKaixinService

func NewKaixinService(name string, c client.Client) KaixinService

type KaixinServiceClient

type KaixinServiceClient interface {
	Kaixin(ctx context.Context, in *KaixinRequest, opts ...grpc.CallOption) (*KaixinResponse, error)
}

KaixinServiceClient is the client API for KaixinService service.

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

func NewKaixinServiceClient

func NewKaixinServiceClient(cc *grpc.ClientConn) KaixinServiceClient

type KaixinServiceHandler

type KaixinServiceHandler interface {
	Kaixin(context.Context, *KaixinRequest, *KaixinResponse) error
}

type KaixinServiceServer

type KaixinServiceServer interface {
	Kaixin(context.Context, *KaixinRequest) (*KaixinResponse, error)
}

KaixinServiceServer is the server API for KaixinService service.

type SayService

type SayService interface {
	Hello(ctx context.Context, in *HelloRequest, opts ...client.CallOption) (*HelloResponse, error)
	Update(ctx context.Context, in *UpdateRequest, opts ...client.CallOption) (*UpdateResponse, error)
}

func NewSayService

func NewSayService(name string, c client.Client) SayService

type SayServiceClient

type SayServiceClient interface {
	Hello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloResponse, error)
	Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error)
}

SayServiceClient is the client API for SayService service.

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

func NewSayServiceClient

func NewSayServiceClient(cc *grpc.ClientConn) SayServiceClient

type SayServiceHandler

type SayServiceHandler interface {
	Hello(context.Context, *HelloRequest, *HelloResponse) error
	Update(context.Context, *UpdateRequest, *UpdateResponse) error
}

type SayServiceServer

type SayServiceServer interface {
	Hello(context.Context, *HelloRequest) (*HelloResponse, error)
	Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
}

SayServiceServer is the server API for SayService service.

type UnimplementedKaixinServiceServer

type UnimplementedKaixinServiceServer struct {
}

UnimplementedKaixinServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedKaixinServiceServer) Kaixin

type UnimplementedSayServiceServer

type UnimplementedSayServiceServer struct {
}

UnimplementedSayServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedSayServiceServer) Hello

func (*UnimplementedSayServiceServer) Update

type UnimplementedWeiwuServiceServer

type UnimplementedWeiwuServiceServer struct {
}

UnimplementedWeiwuServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedWeiwuServiceServer) Haha

type UpdateRequest

type UpdateRequest struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UpdateRequest) Descriptor

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

func (*UpdateRequest) GetName

func (m *UpdateRequest) GetName() string

func (*UpdateRequest) ProtoMessage

func (*UpdateRequest) ProtoMessage()

func (*UpdateRequest) Reset

func (m *UpdateRequest) Reset()

func (*UpdateRequest) String

func (m *UpdateRequest) String() string

func (*UpdateRequest) Validate

func (m *UpdateRequest) Validate() error

Validate checks the field values on UpdateRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*UpdateRequest) XXX_DiscardUnknown

func (m *UpdateRequest) XXX_DiscardUnknown()

func (*UpdateRequest) XXX_Marshal

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

func (*UpdateRequest) XXX_Merge

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

func (*UpdateRequest) XXX_Size

func (m *UpdateRequest) XXX_Size() int

func (*UpdateRequest) XXX_Unmarshal

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

type UpdateRequestValidationError

type UpdateRequestValidationError struct {
	// contains filtered or unexported fields
}

UpdateRequestValidationError is the validation error returned by UpdateRequest.Validate if the designated constraints aren't met.

func (UpdateRequestValidationError) Cause

Cause function returns cause value.

func (UpdateRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateRequestValidationError) ErrorName

func (e UpdateRequestValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateRequestValidationError) Field

Field function returns field value.

func (UpdateRequestValidationError) Key

Key function returns key value.

func (UpdateRequestValidationError) Reason

Reason function returns reason value.

type UpdateResponse

type UpdateResponse struct {
	Code                 int32    `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg                  string   `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*UpdateResponse) Descriptor

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

func (*UpdateResponse) GetCode

func (m *UpdateResponse) GetCode() int32

func (*UpdateResponse) GetMsg

func (m *UpdateResponse) GetMsg() string

func (*UpdateResponse) ProtoMessage

func (*UpdateResponse) ProtoMessage()

func (*UpdateResponse) Reset

func (m *UpdateResponse) Reset()

func (*UpdateResponse) String

func (m *UpdateResponse) String() string

func (*UpdateResponse) Validate

func (m *UpdateResponse) Validate() error

Validate checks the field values on UpdateResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*UpdateResponse) XXX_DiscardUnknown

func (m *UpdateResponse) XXX_DiscardUnknown()

func (*UpdateResponse) XXX_Marshal

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

func (*UpdateResponse) XXX_Merge

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

func (*UpdateResponse) XXX_Size

func (m *UpdateResponse) XXX_Size() int

func (*UpdateResponse) XXX_Unmarshal

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

type UpdateResponseValidationError

type UpdateResponseValidationError struct {
	// contains filtered or unexported fields
}

UpdateResponseValidationError is the validation error returned by UpdateResponse.Validate if the designated constraints aren't met.

func (UpdateResponseValidationError) Cause

Cause function returns cause value.

func (UpdateResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateResponseValidationError) ErrorName

func (e UpdateResponseValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateResponseValidationError) Field

Field function returns field value.

func (UpdateResponseValidationError) Key

Key function returns key value.

func (UpdateResponseValidationError) Reason

Reason function returns reason value.

type WeiwuService

type WeiwuService interface {
	Haha(ctx context.Context, in *HahaRequest, opts ...client.CallOption) (*HahaResponse, error)
}

func NewWeiwuService

func NewWeiwuService(name string, c client.Client) WeiwuService

type WeiwuServiceClient

type WeiwuServiceClient interface {
	Haha(ctx context.Context, in *HahaRequest, opts ...grpc.CallOption) (*HahaResponse, error)
}

WeiwuServiceClient is the client API for WeiwuService service.

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

func NewWeiwuServiceClient

func NewWeiwuServiceClient(cc *grpc.ClientConn) WeiwuServiceClient

type WeiwuServiceHandler

type WeiwuServiceHandler interface {
	Haha(context.Context, *HahaRequest, *HahaResponse) error
}

type WeiwuServiceServer

type WeiwuServiceServer interface {
	Haha(context.Context, *HahaRequest) (*HahaResponse, error)
}

WeiwuServiceServer is the server API for WeiwuService service.

Jump to

Keyboard shortcuts

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