sms

package
v0.5.51 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(host, address string)

func RegisterSMSServer

func RegisterSMSServer(s *grpc.Server, srv SMSServer)

func SendSMS

func SendSMS(PhoneNumbers, TemplateCode string, TemplateParam string) (err error)

Types

type SMSClient

type SMSClient interface {
	SendSms(ctx context.Context, in *SMSRequest, opts ...grpc.CallOption) (*SMSReply, error)
}

SMSClient is the client API for SMS service.

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

func NewSMSClient

func NewSMSClient(cc *grpc.ClientConn) SMSClient

type SMSReply

type SMSReply struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SMSReply) Descriptor

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

func (*SMSReply) ProtoMessage

func (*SMSReply) ProtoMessage()

func (*SMSReply) Reset

func (m *SMSReply) Reset()

func (*SMSReply) String

func (m *SMSReply) String() string

func (*SMSReply) XXX_DiscardUnknown

func (m *SMSReply) XXX_DiscardUnknown()

func (*SMSReply) XXX_Marshal

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

func (*SMSReply) XXX_Merge

func (dst *SMSReply) XXX_Merge(src proto.Message)

func (*SMSReply) XXX_Size

func (m *SMSReply) XXX_Size() int

func (*SMSReply) XXX_Unmarshal

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

type SMSRequest

type SMSRequest struct {
	PhoneNumbers         string   `protobuf:"bytes,1,opt,name=PhoneNumbers,proto3" json:"PhoneNumbers,omitempty"`
	TemplateParam        string   `protobuf:"bytes,2,opt,name=TemplateParam,proto3" json:"TemplateParam,omitempty"`
	TemplateCode         string   `protobuf:"bytes,3,opt,name=TemplateCode,proto3" json:"TemplateCode,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SMSRequest) Descriptor

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

func (*SMSRequest) GetPhoneNumbers

func (m *SMSRequest) GetPhoneNumbers() string

func (*SMSRequest) GetTemplateCode

func (m *SMSRequest) GetTemplateCode() string

func (*SMSRequest) GetTemplateParam

func (m *SMSRequest) GetTemplateParam() string

func (*SMSRequest) ProtoMessage

func (*SMSRequest) ProtoMessage()

func (*SMSRequest) Reset

func (m *SMSRequest) Reset()

func (*SMSRequest) String

func (m *SMSRequest) String() string

func (*SMSRequest) XXX_DiscardUnknown

func (m *SMSRequest) XXX_DiscardUnknown()

func (*SMSRequest) XXX_Marshal

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

func (*SMSRequest) XXX_Merge

func (dst *SMSRequest) XXX_Merge(src proto.Message)

func (*SMSRequest) XXX_Size

func (m *SMSRequest) XXX_Size() int

func (*SMSRequest) XXX_Unmarshal

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

type SMSServer

type SMSServer interface {
	SendSms(context.Context, *SMSRequest) (*SMSReply, error)
}

SMSServer is the server API for SMS service.

Jump to

Keyboard shortcuts

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