Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BSONGenerator ¶
type BSONGenerator struct {
// contains filtered or unexported fields
}
func NewBsonGenerator ¶
func NewBsonGenerator(c *Config, packages ...string) BSONGenerator
func (*BSONGenerator) Run ¶
func (b *BSONGenerator) Run() error
type Config ¶
func (*Config) GetDirection ¶
func (*Config) GetFileName ¶
func (*Config) GetPackageName ¶
func (*Config) GetPackagePath ¶
type Data ¶
type Data struct { PackageName string PackagePath string OptionTypes RegisterCodecTypes }
type OptionCodec ¶
type OptionCodec[T any] struct{}
func (OptionCodec[T]) DecodeValue ¶
func (oc OptionCodec[T]) DecodeValue( ctx bsoncodec.DecodeContext, vr bsonrw.ValueReader, val reflect.Value, ) error
func (OptionCodec[T]) EncodeValue ¶
func (oc OptionCodec[T]) EncodeValue( ctx bsoncodec.EncodeContext, vw bsonrw.ValueWriter, val reflect.Value, ) error
type RegisterCodecType ¶
type RegisterCodecTypes ¶
type RegisterCodecTypes map[string]RegisterCodecType
func (RegisterCodecTypes) GetPackagePaths ¶
func (r RegisterCodecTypes) GetPackagePaths(ownPath string) []string
Click to show internal directories.
Click to hide internal directories.