Documentation ¶
Overview ¶
Package apis is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- func RegisterExchangeServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterExchangeServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ExchangeServiceClient) error
- func RegisterExchangeServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterExchangeServiceServer(s *grpc.Server, srv ExchangeServiceServer)
- type CreateSessionRequest
- func (*CreateSessionRequest) Descriptor() ([]byte, []int)
- func (m *CreateSessionRequest) GetSessionDescription() *SessionDescription
- func (m *CreateSessionRequest) GetSessionId() string
- func (*CreateSessionRequest) ProtoMessage()
- func (m *CreateSessionRequest) Reset()
- func (m *CreateSessionRequest) String() string
- func (m *CreateSessionRequest) XXX_DiscardUnknown()
- func (m *CreateSessionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateSessionRequest) XXX_Merge(src proto.Message)
- func (m *CreateSessionRequest) XXX_Size() int
- func (m *CreateSessionRequest) XXX_Unmarshal(b []byte) error
- type CreateSessionResponse
- func (*CreateSessionResponse) Descriptor() ([]byte, []int)
- func (*CreateSessionResponse) ProtoMessage()
- func (m *CreateSessionResponse) Reset()
- func (m *CreateSessionResponse) String() string
- func (m *CreateSessionResponse) XXX_DiscardUnknown()
- func (m *CreateSessionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateSessionResponse) XXX_Merge(src proto.Message)
- func (m *CreateSessionResponse) XXX_Size() int
- func (m *CreateSessionResponse) XXX_Unmarshal(b []byte) error
- type DeleteSessionRequest
- func (*DeleteSessionRequest) Descriptor() ([]byte, []int)
- func (m *DeleteSessionRequest) GetSessionId() string
- func (*DeleteSessionRequest) ProtoMessage()
- func (m *DeleteSessionRequest) Reset()
- func (m *DeleteSessionRequest) String() string
- func (m *DeleteSessionRequest) XXX_DiscardUnknown()
- func (m *DeleteSessionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteSessionRequest) XXX_Merge(src proto.Message)
- func (m *DeleteSessionRequest) XXX_Size() int
- func (m *DeleteSessionRequest) XXX_Unmarshal(b []byte) error
- type DeleteSessionResponse
- func (*DeleteSessionResponse) Descriptor() ([]byte, []int)
- func (*DeleteSessionResponse) ProtoMessage()
- func (m *DeleteSessionResponse) Reset()
- func (m *DeleteSessionResponse) String() string
- func (m *DeleteSessionResponse) XXX_DiscardUnknown()
- func (m *DeleteSessionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteSessionResponse) XXX_Merge(src proto.Message)
- func (m *DeleteSessionResponse) XXX_Size() int
- func (m *DeleteSessionResponse) XXX_Unmarshal(b []byte) error
- type ExchangeServiceClient
- type ExchangeServiceServer
- type GetSessionRequest
- func (*GetSessionRequest) Descriptor() ([]byte, []int)
- func (m *GetSessionRequest) GetSessionId() string
- func (*GetSessionRequest) ProtoMessage()
- func (m *GetSessionRequest) Reset()
- func (m *GetSessionRequest) String() string
- func (m *GetSessionRequest) XXX_DiscardUnknown()
- func (m *GetSessionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetSessionRequest) XXX_Merge(src proto.Message)
- func (m *GetSessionRequest) XXX_Size() int
- func (m *GetSessionRequest) XXX_Unmarshal(b []byte) error
- type GetSessionResponse
- func (*GetSessionResponse) Descriptor() ([]byte, []int)
- func (m *GetSessionResponse) GetSessionDescription() *SessionDescription
- func (*GetSessionResponse) ProtoMessage()
- func (m *GetSessionResponse) Reset()
- func (m *GetSessionResponse) String() string
- func (m *GetSessionResponse) XXX_DiscardUnknown()
- func (m *GetSessionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetSessionResponse) XXX_Merge(src proto.Message)
- func (m *GetSessionResponse) XXX_Size() int
- func (m *GetSessionResponse) XXX_Unmarshal(b []byte) error
- type SessionDescription
- func (*SessionDescription) Descriptor() ([]byte, []int)
- func (m *SessionDescription) GetSdp() string
- func (m *SessionDescription) GetType() string
- func (*SessionDescription) ProtoMessage()
- func (m *SessionDescription) Reset()
- func (m *SessionDescription) String() string
- func (m *SessionDescription) XXX_DiscardUnknown()
- func (m *SessionDescription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SessionDescription) XXX_Merge(src proto.Message)
- func (m *SessionDescription) XXX_Size() int
- func (m *SessionDescription) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterExchangeServiceHandler ¶
func RegisterExchangeServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterExchangeServiceHandler registers the http handlers for service ExchangeService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterExchangeServiceHandlerClient ¶
func RegisterExchangeServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ExchangeServiceClient) error
RegisterExchangeServiceHandlerClient registers the http handlers for service ExchangeService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ExchangeServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ExchangeServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ExchangeServiceClient" to call the correct interceptors.
func RegisterExchangeServiceHandlerFromEndpoint ¶
func RegisterExchangeServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterExchangeServiceHandlerFromEndpoint is same as RegisterExchangeServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterExchangeServiceServer ¶
func RegisterExchangeServiceServer(s *grpc.Server, srv ExchangeServiceServer)
Types ¶
type CreateSessionRequest ¶
type CreateSessionRequest struct { SessionDescription *SessionDescription `protobuf:"bytes,1,opt,name=session_description,json=sessionDescription,proto3" json:"session_description,omitempty"` SessionId string `protobuf:"bytes,2,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateSessionRequest) Descriptor ¶
func (*CreateSessionRequest) Descriptor() ([]byte, []int)
func (*CreateSessionRequest) GetSessionDescription ¶
func (m *CreateSessionRequest) GetSessionDescription() *SessionDescription
func (*CreateSessionRequest) GetSessionId ¶
func (m *CreateSessionRequest) GetSessionId() string
func (*CreateSessionRequest) ProtoMessage ¶
func (*CreateSessionRequest) ProtoMessage()
func (*CreateSessionRequest) Reset ¶
func (m *CreateSessionRequest) Reset()
func (*CreateSessionRequest) String ¶
func (m *CreateSessionRequest) String() string
func (*CreateSessionRequest) XXX_DiscardUnknown ¶
func (m *CreateSessionRequest) XXX_DiscardUnknown()
func (*CreateSessionRequest) XXX_Marshal ¶
func (m *CreateSessionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateSessionRequest) XXX_Merge ¶
func (m *CreateSessionRequest) XXX_Merge(src proto.Message)
func (*CreateSessionRequest) XXX_Size ¶
func (m *CreateSessionRequest) XXX_Size() int
func (*CreateSessionRequest) XXX_Unmarshal ¶
func (m *CreateSessionRequest) XXX_Unmarshal(b []byte) error
type CreateSessionResponse ¶
type CreateSessionResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateSessionResponse) Descriptor ¶
func (*CreateSessionResponse) Descriptor() ([]byte, []int)
func (*CreateSessionResponse) ProtoMessage ¶
func (*CreateSessionResponse) ProtoMessage()
func (*CreateSessionResponse) Reset ¶
func (m *CreateSessionResponse) Reset()
func (*CreateSessionResponse) String ¶
func (m *CreateSessionResponse) String() string
func (*CreateSessionResponse) XXX_DiscardUnknown ¶
func (m *CreateSessionResponse) XXX_DiscardUnknown()
func (*CreateSessionResponse) XXX_Marshal ¶
func (m *CreateSessionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateSessionResponse) XXX_Merge ¶
func (m *CreateSessionResponse) XXX_Merge(src proto.Message)
func (*CreateSessionResponse) XXX_Size ¶
func (m *CreateSessionResponse) XXX_Size() int
func (*CreateSessionResponse) XXX_Unmarshal ¶
func (m *CreateSessionResponse) XXX_Unmarshal(b []byte) error
type DeleteSessionRequest ¶
type DeleteSessionRequest struct { SessionId string `protobuf:"bytes,2,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeleteSessionRequest) Descriptor ¶
func (*DeleteSessionRequest) Descriptor() ([]byte, []int)
func (*DeleteSessionRequest) GetSessionId ¶
func (m *DeleteSessionRequest) GetSessionId() string
func (*DeleteSessionRequest) ProtoMessage ¶
func (*DeleteSessionRequest) ProtoMessage()
func (*DeleteSessionRequest) Reset ¶
func (m *DeleteSessionRequest) Reset()
func (*DeleteSessionRequest) String ¶
func (m *DeleteSessionRequest) String() string
func (*DeleteSessionRequest) XXX_DiscardUnknown ¶
func (m *DeleteSessionRequest) XXX_DiscardUnknown()
func (*DeleteSessionRequest) XXX_Marshal ¶
func (m *DeleteSessionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteSessionRequest) XXX_Merge ¶
func (m *DeleteSessionRequest) XXX_Merge(src proto.Message)
func (*DeleteSessionRequest) XXX_Size ¶
func (m *DeleteSessionRequest) XXX_Size() int
func (*DeleteSessionRequest) XXX_Unmarshal ¶
func (m *DeleteSessionRequest) XXX_Unmarshal(b []byte) error
type DeleteSessionResponse ¶
type DeleteSessionResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeleteSessionResponse) Descriptor ¶
func (*DeleteSessionResponse) Descriptor() ([]byte, []int)
func (*DeleteSessionResponse) ProtoMessage ¶
func (*DeleteSessionResponse) ProtoMessage()
func (*DeleteSessionResponse) Reset ¶
func (m *DeleteSessionResponse) Reset()
func (*DeleteSessionResponse) String ¶
func (m *DeleteSessionResponse) String() string
func (*DeleteSessionResponse) XXX_DiscardUnknown ¶
func (m *DeleteSessionResponse) XXX_DiscardUnknown()
func (*DeleteSessionResponse) XXX_Marshal ¶
func (m *DeleteSessionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteSessionResponse) XXX_Merge ¶
func (m *DeleteSessionResponse) XXX_Merge(src proto.Message)
func (*DeleteSessionResponse) XXX_Size ¶
func (m *DeleteSessionResponse) XXX_Size() int
func (*DeleteSessionResponse) XXX_Unmarshal ¶
func (m *DeleteSessionResponse) XXX_Unmarshal(b []byte) error
type ExchangeServiceClient ¶
type ExchangeServiceClient interface { CreateSession(ctx context.Context, in *CreateSessionRequest, opts ...grpc.CallOption) (*CreateSessionResponse, error) GetSessionAnswer(ctx context.Context, in *GetSessionRequest, opts ...grpc.CallOption) (*GetSessionResponse, error) GetSessionOffer(ctx context.Context, in *GetSessionRequest, opts ...grpc.CallOption) (*GetSessionResponse, error) DeleteSession(ctx context.Context, in *DeleteSessionRequest, opts ...grpc.CallOption) (*DeleteSessionResponse, error) }
ExchangeServiceClient is the client API for ExchangeService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewExchangeServiceClient ¶
func NewExchangeServiceClient(cc *grpc.ClientConn) ExchangeServiceClient
type ExchangeServiceServer ¶
type ExchangeServiceServer interface { CreateSession(context.Context, *CreateSessionRequest) (*CreateSessionResponse, error) GetSessionAnswer(context.Context, *GetSessionRequest) (*GetSessionResponse, error) GetSessionOffer(context.Context, *GetSessionRequest) (*GetSessionResponse, error) DeleteSession(context.Context, *DeleteSessionRequest) (*DeleteSessionResponse, error) }
ExchangeServiceServer is the server API for ExchangeService service.
type GetSessionRequest ¶
type GetSessionRequest struct { SessionId string `protobuf:"bytes,2,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetSessionRequest) Descriptor ¶
func (*GetSessionRequest) Descriptor() ([]byte, []int)
func (*GetSessionRequest) GetSessionId ¶
func (m *GetSessionRequest) GetSessionId() string
func (*GetSessionRequest) ProtoMessage ¶
func (*GetSessionRequest) ProtoMessage()
func (*GetSessionRequest) Reset ¶
func (m *GetSessionRequest) Reset()
func (*GetSessionRequest) String ¶
func (m *GetSessionRequest) String() string
func (*GetSessionRequest) XXX_DiscardUnknown ¶
func (m *GetSessionRequest) XXX_DiscardUnknown()
func (*GetSessionRequest) XXX_Marshal ¶
func (m *GetSessionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetSessionRequest) XXX_Merge ¶
func (m *GetSessionRequest) XXX_Merge(src proto.Message)
func (*GetSessionRequest) XXX_Size ¶
func (m *GetSessionRequest) XXX_Size() int
func (*GetSessionRequest) XXX_Unmarshal ¶
func (m *GetSessionRequest) XXX_Unmarshal(b []byte) error
type GetSessionResponse ¶
type GetSessionResponse struct { SessionDescription *SessionDescription `protobuf:"bytes,1,opt,name=session_description,json=sessionDescription,proto3" json:"session_description,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetSessionResponse) Descriptor ¶
func (*GetSessionResponse) Descriptor() ([]byte, []int)
func (*GetSessionResponse) GetSessionDescription ¶
func (m *GetSessionResponse) GetSessionDescription() *SessionDescription
func (*GetSessionResponse) ProtoMessage ¶
func (*GetSessionResponse) ProtoMessage()
func (*GetSessionResponse) Reset ¶
func (m *GetSessionResponse) Reset()
func (*GetSessionResponse) String ¶
func (m *GetSessionResponse) String() string
func (*GetSessionResponse) XXX_DiscardUnknown ¶
func (m *GetSessionResponse) XXX_DiscardUnknown()
func (*GetSessionResponse) XXX_Marshal ¶
func (m *GetSessionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetSessionResponse) XXX_Merge ¶
func (m *GetSessionResponse) XXX_Merge(src proto.Message)
func (*GetSessionResponse) XXX_Size ¶
func (m *GetSessionResponse) XXX_Size() int
func (*GetSessionResponse) XXX_Unmarshal ¶
func (m *GetSessionResponse) XXX_Unmarshal(b []byte) error
type SessionDescription ¶
type SessionDescription struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Sdp string `protobuf:"bytes,2,opt,name=sdp,proto3" json:"sdp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SessionDescription) Descriptor ¶
func (*SessionDescription) Descriptor() ([]byte, []int)
func (*SessionDescription) GetSdp ¶
func (m *SessionDescription) GetSdp() string
func (*SessionDescription) GetType ¶
func (m *SessionDescription) GetType() string
func (*SessionDescription) ProtoMessage ¶
func (*SessionDescription) ProtoMessage()
func (*SessionDescription) Reset ¶
func (m *SessionDescription) Reset()
func (*SessionDescription) String ¶
func (m *SessionDescription) String() string
func (*SessionDescription) XXX_DiscardUnknown ¶
func (m *SessionDescription) XXX_DiscardUnknown()
func (*SessionDescription) XXX_Marshal ¶
func (m *SessionDescription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SessionDescription) XXX_Merge ¶
func (m *SessionDescription) XXX_Merge(src proto.Message)
func (*SessionDescription) XXX_Size ¶
func (m *SessionDescription) XXX_Size() int
func (*SessionDescription) XXX_Unmarshal ¶
func (m *SessionDescription) XXX_Unmarshal(b []byte) error