Documentation ¶
Index ¶
- Constants
- func JSONCollectionDecoder(r io.Reader, v *map[string]interface{}) error
- func JSONDecoder(r io.Reader, v *map[string]interface{}) error
- func JSONWrapedCollectionDecoder(r io.Reader, v *map[string]interface{}) error
- func NewJSONDecoder(isCollection bool, wrapCollectionToJSON bool) func(io.Reader, *map[string]interface{}) error
- func NewStringDecoder(_ bool, _ bool) func(io.Reader, *map[string]interface{}) error
- func NoOpDecoder(_ io.Reader, _ *map[string]interface{}) error
- func Register(name string, ...) error
- func StringDecoder(r io.Reader, v *map[string]interface{}) error
- type Decoder
- type DecoderFactory
- type DecoderRegister
Constants ¶
View Source
const (
// JSON - JSON 인코딩 식별자
JSON = "json"
)
View Source
const (
// NOOP - 응답을 변환없이 반환하기 위한 식별자
NOOP = "no-op"
)
View Source
const (
// STRING - 단순 문자열 인코딩 식별자
STRING = "string"
)
Variables ¶
This section is empty.
Functions ¶
func JSONCollectionDecoder ¶
JSONCollectionDecoder - 지정한 Reader의 JSON 데이터에 대한 Collection 으로 Decoder를 생성하고 Decode 처리 (최종 반환할 때 Array인 형태로 변횐해서 처리)
func JSONDecoder ¶
JSONDecoder - 지정한 Reader의 JSON 데이터에 대한 Decoder를 생성하고 Decode 처리
func JSONWrapedCollectionDecoder ¶
JSONWrapedCollectionDecoder - 지정한 Reader의 JSON 데이터에 대한 Collection 으로 Decoder를 생성하고 Decode 처리
func NewJSONDecoder ¶
func NewJSONDecoder(isCollection bool, wrapCollectionToJSON bool) func(io.Reader, *map[string]interface{}) error
NewJSONDecoder - Collection 여부에 따라서 JSON Decoder 생성
func NewStringDecoder ¶
NewStringDecoder - 단순 문자열을 위한 Decoder 생성
func NoOpDecoder ¶
NoOpDecoder - NO-OP Decoder를 처리를 위한 Dummy 반환
Types ¶
type DecoderFactory ¶
DecoderFactory - CollectionDecoder나 EntityDecoder를 반환하는 함수 형식
type DecoderRegister ¶
type DecoderRegister struct {
// contains filtered or unexported fields
}
DecoderRegister - 형식없는 맵 방식으로 Decoder를 관리하기 위한 등록 구조
Click to show internal directories.
Click to hide internal directories.