yunpian

package
v0.0.0-...-0f6a860 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterSendHandler

func RegisterSendHandler(s server.Server, hdlr SendHandler, opts ...server.HandlerOption) error

Types

type BizTypeResponse

type BizTypeResponse struct {
	List                 []*MapType `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*BizTypeResponse) Descriptor

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

func (*BizTypeResponse) GetList

func (m *BizTypeResponse) GetList() []*MapType

func (*BizTypeResponse) ProtoMessage

func (*BizTypeResponse) ProtoMessage()

func (*BizTypeResponse) Reset

func (m *BizTypeResponse) Reset()

func (*BizTypeResponse) String

func (m *BizTypeResponse) String() string

func (*BizTypeResponse) XXX_DiscardUnknown

func (m *BizTypeResponse) XXX_DiscardUnknown()

func (*BizTypeResponse) XXX_Marshal

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

func (*BizTypeResponse) XXX_Merge

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

func (*BizTypeResponse) XXX_Size

func (m *BizTypeResponse) XXX_Size() int

func (*BizTypeResponse) XXX_Unmarshal

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

type CodeResource

type CodeResource struct {
	Mobile               string   `protobuf:"bytes,1,opt,name=mobile,proto3" json:"mobile,omitempty"`
	BizType              int32    `protobuf:"varint,2,opt,name=bizType,proto3" json:"bizType,omitempty"`
	Expires              int64    `protobuf:"varint,3,opt,name=expires,proto3" json:"expires,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CodeResource) Descriptor

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

func (*CodeResource) GetBizType

func (m *CodeResource) GetBizType() int32

func (*CodeResource) GetExpires

func (m *CodeResource) GetExpires() int64

func (*CodeResource) GetMobile

func (m *CodeResource) GetMobile() string

func (*CodeResource) ProtoMessage

func (*CodeResource) ProtoMessage()

func (*CodeResource) Reset

func (m *CodeResource) Reset()

func (*CodeResource) String

func (m *CodeResource) String() string

func (*CodeResource) XXX_DiscardUnknown

func (m *CodeResource) XXX_DiscardUnknown()

func (*CodeResource) XXX_Marshal

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

func (*CodeResource) XXX_Merge

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

func (*CodeResource) XXX_Size

func (m *CodeResource) XXX_Size() int

func (*CodeResource) XXX_Unmarshal

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

type CodeResponse

type CodeResponse struct {
	Success              bool     `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	ExpiresAt            string   `protobuf:"bytes,2,opt,name=expiresAt,proto3" json:"expiresAt,omitempty"`
	Code                 string   `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CodeResponse) Descriptor

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

func (*CodeResponse) GetCode

func (m *CodeResponse) GetCode() string

func (*CodeResponse) GetExpiresAt

func (m *CodeResponse) GetExpiresAt() string

func (*CodeResponse) GetSuccess

func (m *CodeResponse) GetSuccess() bool

func (*CodeResponse) ProtoMessage

func (*CodeResponse) ProtoMessage()

func (*CodeResponse) Reset

func (m *CodeResponse) Reset()

func (*CodeResponse) String

func (m *CodeResponse) String() string

func (*CodeResponse) XXX_DiscardUnknown

func (m *CodeResponse) XXX_DiscardUnknown()

func (*CodeResponse) XXX_Marshal

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

func (*CodeResponse) XXX_Merge

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

func (*CodeResponse) XXX_Size

func (m *CodeResponse) XXX_Size() int

func (*CodeResponse) XXX_Unmarshal

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

type EventResource

type EventResource struct {
	Mobile               string   `protobuf:"bytes,1,opt,name=mobile,proto3" json:"mobile,omitempty"`
	BizType              int32    `protobuf:"varint,2,opt,name=bizType,proto3" json:"bizType,omitempty"`
	TemplateId           int64    `protobuf:"varint,3,opt,name=templateId,proto3" json:"templateId,omitempty"`
	Value                []string `protobuf:"bytes,4,rep,name=value,proto3" json:"value,omitempty"`
	UserId               int64    `protobuf:"varint,5,opt,name=userId,proto3" json:"userId,omitempty"`
	Mode                 int32    `protobuf:"varint,6,opt,name=mode,proto3" json:"mode,omitempty"`
	Success              bool     `protobuf:"varint,7,opt,name=success,proto3" json:"success,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*EventResource) Descriptor

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

func (*EventResource) GetBizType

func (m *EventResource) GetBizType() int32

func (*EventResource) GetMobile

func (m *EventResource) GetMobile() string

func (*EventResource) GetMode

func (m *EventResource) GetMode() int32

func (*EventResource) GetSuccess

func (m *EventResource) GetSuccess() bool

func (*EventResource) GetTemplateId

func (m *EventResource) GetTemplateId() int64

func (*EventResource) GetUserId

func (m *EventResource) GetUserId() int64

func (*EventResource) GetValue

func (m *EventResource) GetValue() []string

func (*EventResource) ProtoMessage

func (*EventResource) ProtoMessage()

func (*EventResource) Reset

func (m *EventResource) Reset()

func (*EventResource) String

func (m *EventResource) String() string

func (*EventResource) XXX_DiscardUnknown

func (m *EventResource) XXX_DiscardUnknown()

func (*EventResource) XXX_Marshal

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

func (*EventResource) XXX_Merge

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

func (*EventResource) XXX_Size

func (m *EventResource) XXX_Size() int

func (*EventResource) XXX_Unmarshal

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

type MapType

type MapType struct {
	Key                  int32    `protobuf:"varint,1,opt,name=key,proto3" json:"key,omitempty"`
	Value                string   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MapType) Descriptor

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

func (*MapType) GetKey

func (m *MapType) GetKey() int32

func (*MapType) GetValue

func (m *MapType) GetValue() string

func (*MapType) ProtoMessage

func (*MapType) ProtoMessage()

func (*MapType) Reset

func (m *MapType) Reset()

func (*MapType) String

func (m *MapType) String() string

func (*MapType) XXX_DiscardUnknown

func (m *MapType) XXX_DiscardUnknown()

func (*MapType) XXX_Marshal

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

func (*MapType) XXX_Merge

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

func (*MapType) XXX_Size

func (m *MapType) XXX_Size() int

func (*MapType) XXX_Unmarshal

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

type SendResource

type SendResource struct {
	UserId               int64    `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
	Sid                  string   `protobuf:"bytes,2,opt,name=sid,proto3" json:"sid,omitempty"`
	Provider             string   `protobuf:"bytes,3,opt,name=provider,proto3" json:"provider,omitempty"`
	BizType              int32    `protobuf:"varint,4,opt,name=bizType,proto3" json:"bizType,omitempty"`
	Mobile               string   `protobuf:"bytes,5,opt,name=mobile,proto3" json:"mobile,omitempty"`
	Content              string   `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"`
	Success              int64    `protobuf:"varint,7,opt,name=success,proto3" json:"success,omitempty"`
	Message              string   `protobuf:"bytes,8,opt,name=message,proto3" json:"message,omitempty"`
	Id                   int64    `protobuf:"varint,9,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SendResource) Descriptor

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

func (*SendResource) GetBizType

func (m *SendResource) GetBizType() int32

func (*SendResource) GetContent

func (m *SendResource) GetContent() string

func (*SendResource) GetId

func (m *SendResource) GetId() int64

func (*SendResource) GetMessage

func (m *SendResource) GetMessage() string

func (*SendResource) GetMobile

func (m *SendResource) GetMobile() string

func (*SendResource) GetProvider

func (m *SendResource) GetProvider() string

func (*SendResource) GetSid

func (m *SendResource) GetSid() string

func (*SendResource) GetSuccess

func (m *SendResource) GetSuccess() int64

func (*SendResource) GetUserId

func (m *SendResource) GetUserId() int64

func (*SendResource) ProtoMessage

func (*SendResource) ProtoMessage()

func (*SendResource) Reset

func (m *SendResource) Reset()

func (*SendResource) String

func (m *SendResource) String() string

func (*SendResource) XXX_DiscardUnknown

func (m *SendResource) XXX_DiscardUnknown()

func (*SendResource) XXX_Marshal

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

func (*SendResource) XXX_Merge

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

func (*SendResource) XXX_Size

func (m *SendResource) XXX_Size() int

func (*SendResource) XXX_Unmarshal

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

type SendService

type SendService interface {
	BizType(ctx context.Context, in *BizTypeResponse, opts ...client.CallOption) (*BizTypeResponse, error)
	Code(ctx context.Context, in *CodeResource, opts ...client.CallOption) (*CodeResponse, error)
	Validate(ctx context.Context, in *ValidateRequest, opts ...client.CallOption) (*ValidateResponse, error)
	Notice(ctx context.Context, in *EventResource, opts ...client.CallOption) (*EventResource, error)
}

func NewSendService

func NewSendService(name string, c client.Client) SendService

type ValidateRequest

type ValidateRequest struct {
	Mobile               string   `protobuf:"bytes,1,opt,name=mobile,proto3" json:"mobile,omitempty"`
	BizType              int32    `protobuf:"varint,2,opt,name=bizType,proto3" json:"bizType,omitempty"`
	Code                 string   `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ValidateRequest) Descriptor

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

func (*ValidateRequest) GetBizType

func (m *ValidateRequest) GetBizType() int32

func (*ValidateRequest) GetCode

func (m *ValidateRequest) GetCode() string

func (*ValidateRequest) GetMobile

func (m *ValidateRequest) GetMobile() string

func (*ValidateRequest) ProtoMessage

func (*ValidateRequest) ProtoMessage()

func (*ValidateRequest) Reset

func (m *ValidateRequest) Reset()

func (*ValidateRequest) String

func (m *ValidateRequest) String() string

func (*ValidateRequest) XXX_DiscardUnknown

func (m *ValidateRequest) XXX_DiscardUnknown()

func (*ValidateRequest) XXX_Marshal

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

func (*ValidateRequest) XXX_Merge

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

func (*ValidateRequest) XXX_Size

func (m *ValidateRequest) XXX_Size() int

func (*ValidateRequest) XXX_Unmarshal

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

type ValidateResponse

type ValidateResponse struct {
	Success              bool     `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ValidateResponse) Descriptor

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

func (*ValidateResponse) GetSuccess

func (m *ValidateResponse) GetSuccess() bool

func (*ValidateResponse) ProtoMessage

func (*ValidateResponse) ProtoMessage()

func (*ValidateResponse) Reset

func (m *ValidateResponse) Reset()

func (*ValidateResponse) String

func (m *ValidateResponse) String() string

func (*ValidateResponse) XXX_DiscardUnknown

func (m *ValidateResponse) XXX_DiscardUnknown()

func (*ValidateResponse) XXX_Marshal

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

func (*ValidateResponse) XXX_Merge

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

func (*ValidateResponse) XXX_Size

func (m *ValidateResponse) XXX_Size() int

func (*ValidateResponse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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