sms

package
v0.0.0-...-c34d2c7 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2019 License: MIT Imports: 6 Imported by: 0

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)
}

Directories

Path Synopsis
Package main implements a gRPC server that handles Staffjoy emails.
Package main implements a gRPC server that handles Staffjoy emails.

Jump to

Keyboard shortcuts

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