Documentation ¶
Index ¶
- func Connect(host, address string)
- func RegisterSMSServer(s *grpc.Server, srv SMSServer)
- func SendSMS(PhoneNumbers, TemplateCode string, TemplateParam string) (err error)
- type SMSClient
- type SMSReply
- func (*SMSReply) Descriptor() ([]byte, []int)
- func (*SMSReply) ProtoMessage()
- func (m *SMSReply) Reset()
- func (m *SMSReply) String() string
- func (m *SMSReply) XXX_DiscardUnknown()
- func (m *SMSReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SMSReply) XXX_Merge(src proto.Message)
- func (m *SMSReply) XXX_Size() int
- func (m *SMSReply) XXX_Unmarshal(b []byte) error
- type SMSRequest
- func (*SMSRequest) Descriptor() ([]byte, []int)
- func (m *SMSRequest) GetPhoneNumbers() string
- func (m *SMSRequest) GetTemplateCode() string
- func (m *SMSRequest) GetTemplateParam() string
- func (*SMSRequest) ProtoMessage()
- func (m *SMSRequest) Reset()
- func (m *SMSRequest) String() string
- func (m *SMSRequest) XXX_DiscardUnknown()
- func (m *SMSRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SMSRequest) XXX_Merge(src proto.Message)
- func (m *SMSRequest) XXX_Size() int
- func (m *SMSRequest) XXX_Unmarshal(b []byte) error
- type SMSServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSMSServer ¶
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) ProtoMessage ¶
func (*SMSReply) ProtoMessage()
func (*SMSReply) XXX_DiscardUnknown ¶
func (m *SMSReply) XXX_DiscardUnknown()
func (*SMSReply) XXX_Marshal ¶
func (*SMSReply) XXX_Unmarshal ¶
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
Click to show internal directories.
Click to hide internal directories.