Documentation ¶
Overview ¶
Package evntsrc_streamauth is a generated protocol buffer package. It is generated from these files: streamauth.proto It has these top-level messages: APIPermissions Empty ListRequest GetRequest StreamKey KSRequest KeyList
Package evntsrc_streamauth is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterStreamAuthServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterStreamAuthServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client StreamAuthServiceClient) error
- func RegisterStreamAuthServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterStreamAuthServiceServer(s *grpc.Server, srv StreamAuthServiceServer)
- type APIPermissions
- func (*APIPermissions) Descriptor() ([]byte, []int)
- func (m *APIPermissions) GetPublish() bool
- func (m *APIPermissions) GetReplay() bool
- func (m *APIPermissions) GetSubscribe() bool
- func (m *APIPermissions) Marshal() (dAtA []byte, err error)
- func (m *APIPermissions) MarshalTo(dAtA []byte) (int, error)
- func (*APIPermissions) ProtoMessage()
- func (m *APIPermissions) Reset()
- func (m *APIPermissions) Size() (n int)
- func (m *APIPermissions) String() string
- func (m *APIPermissions) Unmarshal(dAtA []byte) error
- func (*APIPermissions) XXX_MessageName() string
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (m *Empty) Marshal() (dAtA []byte, err error)
- func (m *Empty) MarshalTo(dAtA []byte) (int, error)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) Size() (n int)
- func (m *Empty) String() string
- func (m *Empty) Unmarshal(dAtA []byte) error
- func (*Empty) XXX_MessageName() string
- type GetRequest
- func (*GetRequest) Descriptor() ([]byte, []int)
- func (m *GetRequest) GetId() string
- func (m *GetRequest) GetStream() int32
- func (m *GetRequest) Marshal() (dAtA []byte, err error)
- func (m *GetRequest) MarshalTo(dAtA []byte) (int, error)
- func (*GetRequest) ProtoMessage()
- func (m *GetRequest) Reset()
- func (m *GetRequest) Size() (n int)
- func (m *GetRequest) String() string
- func (m *GetRequest) Unmarshal(dAtA []byte) error
- func (*GetRequest) XXX_MessageName() string
- type KSRequest
- func (*KSRequest) Descriptor() ([]byte, []int)
- func (m *KSRequest) GetKey() string
- func (m *KSRequest) GetSecret() string
- func (m *KSRequest) GetStream() int32
- func (m *KSRequest) Marshal() (dAtA []byte, err error)
- func (m *KSRequest) MarshalTo(dAtA []byte) (int, error)
- func (*KSRequest) ProtoMessage()
- func (m *KSRequest) Reset()
- func (m *KSRequest) Size() (n int)
- func (m *KSRequest) String() string
- func (m *KSRequest) Unmarshal(dAtA []byte) error
- func (*KSRequest) XXX_MessageName() string
- type KeyList
- func (*KeyList) Descriptor() ([]byte, []int)
- func (m *KeyList) GetKeys() []*StreamKey
- func (m *KeyList) Marshal() (dAtA []byte, err error)
- func (m *KeyList) MarshalTo(dAtA []byte) (int, error)
- func (*KeyList) ProtoMessage()
- func (m *KeyList) Reset()
- func (m *KeyList) Size() (n int)
- func (m *KeyList) String() string
- func (m *KeyList) Unmarshal(dAtA []byte) error
- func (*KeyList) XXX_MessageName() string
- type ListRequest
- func (*ListRequest) Descriptor() ([]byte, []int)
- func (m *ListRequest) GetStream() int32
- func (m *ListRequest) Marshal() (dAtA []byte, err error)
- func (m *ListRequest) MarshalTo(dAtA []byte) (int, error)
- func (*ListRequest) ProtoMessage()
- func (m *ListRequest) Reset()
- func (m *ListRequest) Size() (n int)
- func (m *ListRequest) String() string
- func (m *ListRequest) Unmarshal(dAtA []byte) error
- func (*ListRequest) XXX_MessageName() string
- type StreamAuthServiceClient
- type StreamAuthServiceServer
- type StreamKey
- func (*StreamKey) Descriptor() ([]byte, []int)
- func (m *StreamKey) GetId() string
- func (m *StreamKey) GetKey() string
- func (m *StreamKey) GetLabel() string
- func (m *StreamKey) GetMetadata() map[string][]byte
- func (m *StreamKey) GetPermissions() *APIPermissions
- func (m *StreamKey) GetRestrictionFilter() string
- func (m *StreamKey) GetSecret() string
- func (m *StreamKey) GetStream() int32
- func (m *StreamKey) Marshal() (dAtA []byte, err error)
- func (m *StreamKey) MarshalTo(dAtA []byte) (int, error)
- func (*StreamKey) ProtoMessage()
- func (m *StreamKey) Reset()
- func (m *StreamKey) Size() (n int)
- func (m *StreamKey) String() string
- func (m *StreamKey) Unmarshal(dAtA []byte) error
- func (*StreamKey) XXX_MessageName() string
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthStreamauth = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowStreamauth = fmt.Errorf("proto: integer overflow") )
Functions ¶
func RegisterStreamAuthServiceHandler ¶
func RegisterStreamAuthServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterStreamAuthServiceHandler registers the http handlers for service StreamAuthService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterStreamAuthServiceHandlerClient ¶
func RegisterStreamAuthServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client StreamAuthServiceClient) error
RegisterStreamAuthServiceHandlerClient registers the http handlers for service StreamAuthService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "StreamAuthServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "StreamAuthServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "StreamAuthServiceClient" to call the correct interceptors.
func RegisterStreamAuthServiceHandlerFromEndpoint ¶
func RegisterStreamAuthServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterStreamAuthServiceHandlerFromEndpoint is same as RegisterStreamAuthServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterStreamAuthServiceServer ¶
func RegisterStreamAuthServiceServer(s *grpc.Server, srv StreamAuthServiceServer)
Types ¶
type APIPermissions ¶
type APIPermissions struct { Publish bool `protobuf:"varint,1,opt,name=publish,proto3" json:"publish,omitempty"` Subscribe bool `protobuf:"varint,2,opt,name=subscribe,proto3" json:"subscribe,omitempty"` Replay bool `protobuf:"varint,3,opt,name=replay,proto3" json:"replay,omitempty"` }
func (*APIPermissions) Descriptor ¶
func (*APIPermissions) Descriptor() ([]byte, []int)
func (*APIPermissions) GetPublish ¶
func (m *APIPermissions) GetPublish() bool
func (*APIPermissions) GetReplay ¶
func (m *APIPermissions) GetReplay() bool
func (*APIPermissions) GetSubscribe ¶
func (m *APIPermissions) GetSubscribe() bool
func (*APIPermissions) Marshal ¶
func (m *APIPermissions) Marshal() (dAtA []byte, err error)
func (*APIPermissions) ProtoMessage ¶
func (*APIPermissions) ProtoMessage()
func (*APIPermissions) Reset ¶
func (m *APIPermissions) Reset()
func (*APIPermissions) Size ¶
func (m *APIPermissions) Size() (n int)
func (*APIPermissions) String ¶
func (m *APIPermissions) String() string
func (*APIPermissions) Unmarshal ¶
func (m *APIPermissions) Unmarshal(dAtA []byte) error
func (*APIPermissions) XXX_MessageName ¶
func (*APIPermissions) XXX_MessageName() string
type Empty ¶
type Empty struct { }
func (*Empty) Descriptor ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) XXX_MessageName ¶
type GetRequest ¶
type GetRequest struct { Stream int32 `protobuf:"varint,1,opt,name=stream,proto3" json:"stream,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty" bson:"_id"` }
func (*GetRequest) Descriptor ¶
func (*GetRequest) Descriptor() ([]byte, []int)
func (*GetRequest) GetId ¶
func (m *GetRequest) GetId() string
func (*GetRequest) GetStream ¶
func (m *GetRequest) GetStream() int32
func (*GetRequest) Marshal ¶
func (m *GetRequest) Marshal() (dAtA []byte, err error)
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) Reset ¶
func (m *GetRequest) Reset()
func (*GetRequest) Size ¶
func (m *GetRequest) Size() (n int)
func (*GetRequest) String ¶
func (m *GetRequest) String() string
func (*GetRequest) Unmarshal ¶
func (m *GetRequest) Unmarshal(dAtA []byte) error
func (*GetRequest) XXX_MessageName ¶
func (*GetRequest) XXX_MessageName() string
type KSRequest ¶
type KSRequest struct { Stream int32 `protobuf:"varint,1,opt,name=stream,proto3" json:"stream,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` Secret string `protobuf:"bytes,3,opt,name=secret,proto3" json:"secret,omitempty"` }
func (*KSRequest) Descriptor ¶
func (*KSRequest) ProtoMessage ¶
func (*KSRequest) ProtoMessage()
func (*KSRequest) XXX_MessageName ¶
type KeyList ¶
type KeyList struct {
Keys []*StreamKey `protobuf:"bytes,1,rep,name=keys" json:"keys,omitempty"`
}
func (*KeyList) Descriptor ¶
func (*KeyList) ProtoMessage ¶
func (*KeyList) ProtoMessage()
func (*KeyList) XXX_MessageName ¶
type ListRequest ¶
type ListRequest struct {
Stream int32 `protobuf:"varint,1,opt,name=stream,proto3" json:"stream,omitempty"`
}
func (*ListRequest) Descriptor ¶
func (*ListRequest) Descriptor() ([]byte, []int)
func (*ListRequest) GetStream ¶
func (m *ListRequest) GetStream() int32
func (*ListRequest) Marshal ¶
func (m *ListRequest) Marshal() (dAtA []byte, err error)
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) Reset ¶
func (m *ListRequest) Reset()
func (*ListRequest) Size ¶
func (m *ListRequest) Size() (n int)
func (*ListRequest) String ¶
func (m *ListRequest) String() string
func (*ListRequest) Unmarshal ¶
func (m *ListRequest) Unmarshal(dAtA []byte) error
func (*ListRequest) XXX_MessageName ¶
func (*ListRequest) XXX_MessageName() string
type StreamAuthServiceClient ¶
type StreamAuthServiceClient interface { Create(ctx context.Context, in *StreamKey, opts ...grpc.CallOption) (*StreamKey, error) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*KeyList, error) ListAll(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*KeyList, error) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*StreamKey, error) ValidateKeySecret(ctx context.Context, in *KSRequest, opts ...grpc.CallOption) (*StreamKey, error) Update(ctx context.Context, in *StreamKey, opts ...grpc.CallOption) (*StreamKey, error) Delete(ctx context.Context, in *StreamKey, opts ...grpc.CallOption) (*Empty, error) }
func NewStreamAuthServiceClient ¶
func NewStreamAuthServiceClient(cc *grpc.ClientConn) StreamAuthServiceClient
type StreamAuthServiceServer ¶
type StreamAuthServiceServer interface { Create(context.Context, *StreamKey) (*StreamKey, error) List(context.Context, *ListRequest) (*KeyList, error) ListAll(context.Context, *Empty) (*KeyList, error) Get(context.Context, *GetRequest) (*StreamKey, error) ValidateKeySecret(context.Context, *KSRequest) (*StreamKey, error) Update(context.Context, *StreamKey) (*StreamKey, error) Delete(context.Context, *StreamKey) (*Empty, error) }
type StreamKey ¶
type StreamKey struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" bson:"_id"` Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` Stream int32 `protobuf:"varint,3,opt,name=stream,proto3" json:"stream,omitempty"` Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"` Secret string `protobuf:"bytes,5,opt,name=secret,proto3" json:"secret,omitempty"` RestrictionFilter string `protobuf:"bytes,6,opt,name=restrictionFilter,proto3" json:"restrictionFilter,omitempty"` Permissions *APIPermissions `protobuf:"bytes,7,opt,name=permissions" json:"permissions,omitempty"` Metadata map[string][]byte `` /* 150-byte string literal not displayed */ }
func (*StreamKey) Descriptor ¶
func (*StreamKey) GetMetadata ¶
func (*StreamKey) GetPermissions ¶
func (m *StreamKey) GetPermissions() *APIPermissions
func (*StreamKey) GetRestrictionFilter ¶
func (*StreamKey) ProtoMessage ¶
func (*StreamKey) ProtoMessage()