vms

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 RegisterVMSServer

func RegisterVMSServer(s *grpc.Server, srv VMSServer)

Types

type Reply

type Reply struct {
	Code                 string   `protobuf:"bytes,1,opt,name=Code,proto3" json:"Code,omitempty"`
	Message              string   `protobuf:"bytes,2,opt,name=Message,proto3" json:"Message,omitempty"`
	RequestId            string   `protobuf:"bytes,3,opt,name=RequestId,proto3" json:"RequestId,omitempty"`
	CallId               string   `protobuf:"bytes,4,opt,name=CallId,proto3" json:"CallId,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func Call

func Call(CalledNumber, TtsCode, TtsParam string) (*Reply, error)

func (*Reply) Descriptor

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

func (*Reply) GetCallId

func (m *Reply) GetCallId() string

func (*Reply) GetCode

func (m *Reply) GetCode() string

func (*Reply) GetMessage

func (m *Reply) GetMessage() string

func (*Reply) GetRequestId

func (m *Reply) GetRequestId() string

func (*Reply) ProtoMessage

func (*Reply) ProtoMessage()

func (*Reply) Reset

func (m *Reply) Reset()

func (*Reply) String

func (m *Reply) String() string

func (*Reply) XXX_DiscardUnknown

func (m *Reply) XXX_DiscardUnknown()

func (*Reply) XXX_Marshal

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

func (*Reply) XXX_Merge

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

func (*Reply) XXX_Size

func (m *Reply) XXX_Size() int

func (*Reply) XXX_Unmarshal

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

type Request

type Request struct {
	CalledNumber         string   `protobuf:"bytes,1,opt,name=CalledNumber,proto3" json:"CalledNumber,omitempty"`
	TtsCode              string   `protobuf:"bytes,2,opt,name=TtsCode,proto3" json:"TtsCode,omitempty"`
	TtsParam             string   `protobuf:"bytes,3,opt,name=TtsParam,proto3" json:"TtsParam,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Request) Descriptor

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

func (*Request) GetCalledNumber

func (m *Request) GetCalledNumber() string

func (*Request) GetTtsCode

func (m *Request) GetTtsCode() string

func (*Request) GetTtsParam

func (m *Request) GetTtsParam() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

func (*Request) XXX_DiscardUnknown

func (m *Request) XXX_DiscardUnknown()

func (*Request) XXX_Marshal

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

func (*Request) XXX_Merge

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

func (*Request) XXX_Size

func (m *Request) XXX_Size() int

func (*Request) XXX_Unmarshal

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

type VMSClient

type VMSClient interface {
	Call(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Reply, error)
}

VMSClient is the client API for VMS service.

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

func NewVMSClient

func NewVMSClient(cc *grpc.ClientConn) VMSClient

type VMSServer

type VMSServer interface {
	Call(context.Context, *Request) (*Reply, error)
}

VMSServer is the server API for VMS service.

Jump to

Keyboard shortcuts

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