A working proxy exists.
This commit is contained in:
40
packages/ipp/unsupportedvalue.go
Normal file
40
packages/ipp/unsupportedvalue.go
Normal file
@@ -0,0 +1,40 @@
|
||||
package ipp
|
||||
|
||||
import (
|
||||
"io"
|
||||
|
||||
log "github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
// UnSupportedValue represents a ipp unsupported attributes attribute
|
||||
type UnSupportedValue struct {
|
||||
name string
|
||||
}
|
||||
|
||||
// NewUnsupportedValue creates a new unsupported attributes attribute
|
||||
func NewUnsupportedValue() *UnSupportedValue {
|
||||
c := new(UnSupportedValue)
|
||||
return c
|
||||
}
|
||||
|
||||
func (c *UnSupportedValue) unmarshal(byteStream io.Reader) {
|
||||
c.name, _ = unmarshalSingleValue(byteStream)
|
||||
}
|
||||
|
||||
// Name returns the name of the attribute
|
||||
func (c *UnSupportedValue) Name() string {
|
||||
return c.name
|
||||
}
|
||||
|
||||
func (c *UnSupportedValue) marshal() (data []byte) {
|
||||
log.Error("Unmarshal unsupported value is not implemented yet")
|
||||
return
|
||||
}
|
||||
|
||||
func (c *UnSupportedValue) valueTag() tag {
|
||||
return unsupportedValueTag
|
||||
}
|
||||
|
||||
func (c UnSupportedValue) String() string {
|
||||
return c.name
|
||||
}
|
||||
Reference in New Issue
Block a user