Documentation ¶
Overview ¶
Package json defines the JSON format decoder and decoder creation strategy to be integrated into the config package decoder factory instance.
Index ¶
Constants ¶
View Source
const ( // Format defines the value to be used to declare // a JSON config source encoding format. Format = "json" )
View Source
const ( // ID defines the application container registration string for the // JSON format decoder strategy. ID = decoder.ID + ".json" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DecoderStrategy ¶
type DecoderStrategy struct{}
DecoderStrategy defines a JSON config decoder instantiation strategy
func NewDecoderStrategy ¶
func NewDecoderStrategy() *DecoderStrategy
NewDecoderStrategy will instantiate a new JSON format decoder creation strategy
func (DecoderStrategy) Accept ¶
func (DecoderStrategy) Accept( format string, ) bool
Accept will check if the decoder factory strategy can instantiate a decoder giving the format and the creation request parameters.
type Provider ¶
type Provider struct{}
Provider defines the slate.config module service provider to be used on the application initialization to register the config service.
Click to show internal directories.
Click to hide internal directories.