remote

package
v0.0.0-...-166a25f Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInternal      = errors.New("internal error")
	ErrInvalidParams = errors.New("invalid request params")
)
View Source
var (
	ErrNoServerURL     = errors.New("server URL not provided")
	ErrServerStatus    = errors.New("server status error")
	ErrInvalidResponse = errors.New("invalid response error")
)
View Source
var File_remote_cdm_session_data_proto protoreflect.FileDescriptor

Functions

func New

func New(options *RemoteOptions) drm.Registry

func NewServer

func NewServer(options *ServerOptions) (handler http.Handler, err error)

Types

type GenerateChallengeParam

type GenerateChallengeParam struct {
	*drm.ChallengOptions
	Device string `json:"device"`
}

type GenerateChallengeResult

type GenerateChallengeResult struct {
	*drm.Challenge
	EncryptedSessionData []byte `json:"session_data"`
}

type ProvideLicenseParam

type ProvideLicenseParam struct {
	License              []byte `json:"license"`
	EncryptedSessionData []byte `json:"session_data"`
}

type RemoteOptions

type RemoteOptions struct {
	IDStore jsonrpc.IDStore
	Base    http.RoundTripper
	URL     *url.URL
}

type ServerOptions

type ServerOptions struct {
	Registry   drm.Registry
	EncryptKey *nacl.Key // optional
}

type SessionData

type SessionData struct {
	Device            string `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"`
	DeviceSessionData []byte `protobuf:"bytes,2,opt,name=device_session_data,json=deviceSessionData,proto3" json:"device_session_data,omitempty"`
	// contains filtered or unexported fields
}

func (*SessionData) Descriptor deprecated

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

Deprecated: Use SessionData.ProtoReflect.Descriptor instead.

func (*SessionData) GetDevice

func (x *SessionData) GetDevice() string

func (*SessionData) GetDeviceSessionData

func (x *SessionData) GetDeviceSessionData() []byte

func (*SessionData) ProtoMessage

func (*SessionData) ProtoMessage()

func (*SessionData) ProtoReflect

func (x *SessionData) ProtoReflect() protoreflect.Message

func (*SessionData) Reset

func (x *SessionData) Reset()

func (*SessionData) String

func (x *SessionData) String() string

Jump to

Keyboard shortcuts

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