Documentation ¶
Overview ¶
Package sms is a generated protocol buffer package.
It is generated from these files:
sms.proto
It has these top-level messages:
SmsRequest
Index ¶
Constants ¶
View Source
const ( // ServerPort tells the gRPC server what port to listen on ServerPort = ":1000" // Endpoint defines the DNS of the account server for clients // to access the server in Kubernetes. Endpoint = "smsserver-service" + ServerPort )
Variables ¶
This section is empty.
Functions ¶
func RegisterSmsServiceServer ¶
func RegisterSmsServiceServer(s *grpc.Server, srv SmsServiceServer)
Types ¶
type SmsRequest ¶
type SmsRequest struct { To string `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"` Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` }
func (*SmsRequest) Descriptor ¶
func (*SmsRequest) Descriptor() ([]byte, []int)
func (*SmsRequest) ProtoMessage ¶
func (*SmsRequest) ProtoMessage()
func (*SmsRequest) Reset ¶
func (m *SmsRequest) Reset()
func (*SmsRequest) String ¶
func (m *SmsRequest) String() string
type SmsServiceClient ¶
type SmsServiceClient interface {
QueueSend(ctx context.Context, in *SmsRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error)
}
func NewClient ¶
func NewClient() (SmsServiceClient, func() error, error)
NewClient returns a gRPC client for interacting with the sms. After calling it, run a defer close on the close function
func NewSmsServiceClient ¶
func NewSmsServiceClient(cc *grpc.ClientConn) SmsServiceClient
type SmsServiceServer ¶
type SmsServiceServer interface {
QueueSend(context.Context, *SmsRequest) (*google_protobuf.Empty, error)
}
Click to show internal directories.
Click to hide internal directories.