Documentation ¶
Index ¶
- Constants
- Variables
- type Organization
- type Organization_v2
- type SampleMongoDbGoMethodsMigrator
- func (r *SampleMongoDbGoMethodsMigrator) V001_init_organizations_down() error
- func (r *SampleMongoDbGoMethodsMigrator) V001_init_organizations_up() error
- func (r *SampleMongoDbGoMethodsMigrator) V001_init_users_down() error
- func (r *SampleMongoDbGoMethodsMigrator) V001_init_users_up() error
- func (r *SampleMongoDbGoMethodsMigrator) V001_method_with_wrong_signature_down() (bool, error)
- func (r *SampleMongoDbGoMethodsMigrator) V001_method_with_wrong_signature_up(s string) error
- func (r *SampleMongoDbGoMethodsMigrator) V001_method_with_wrong_signature_up2(s *mgo.Session) error
- func (r *SampleMongoDbGoMethodsMigrator) V002_change_user_cleo_to_cleopatra_down() error
- func (r *SampleMongoDbGoMethodsMigrator) V002_change_user_cleo_to_cleopatra_up() error
- func (r *SampleMongoDbGoMethodsMigrator) V002_organizations_rename_location_field_to_headquarters_down() error
- func (r *SampleMongoDbGoMethodsMigrator) V002_organizations_rename_location_field_to_headquarters_up() error
- type User
Constants ¶
View Source
const ( DB_NAME = "test" SHORT_DATE_LAYOUT = "2000-Jan-01" USERS_C = "users" ORGANIZATIONS_C = "organizations" )
Variables ¶
View Source
var OrganizationIds []bson.ObjectId = []bson.ObjectId{ bson.NewObjectId(), bson.NewObjectId(), bson.NewObjectId(), }
View Source
var UserIds []bson.ObjectId = []bson.ObjectId{ bson.NewObjectId(), bson.NewObjectId(), bson.NewObjectId(), }
Functions ¶
This section is empty.
Types ¶
type Organization ¶
type Organization_v2 ¶
type SampleMongoDbGoMethodsMigrator ¶
type SampleMongoDbGoMethodsMigrator struct { }
func (*SampleMongoDbGoMethodsMigrator) V001_init_organizations_down ¶
func (r *SampleMongoDbGoMethodsMigrator) V001_init_organizations_down() error
func (*SampleMongoDbGoMethodsMigrator) V001_init_organizations_up ¶
func (r *SampleMongoDbGoMethodsMigrator) V001_init_organizations_up() error
func (*SampleMongoDbGoMethodsMigrator) V001_init_users_down ¶
func (r *SampleMongoDbGoMethodsMigrator) V001_init_users_down() error
func (*SampleMongoDbGoMethodsMigrator) V001_init_users_up ¶
func (r *SampleMongoDbGoMethodsMigrator) V001_init_users_up() error
func (*SampleMongoDbGoMethodsMigrator) V001_method_with_wrong_signature_down ¶
func (r *SampleMongoDbGoMethodsMigrator) V001_method_with_wrong_signature_down() (bool, error)
func (*SampleMongoDbGoMethodsMigrator) V001_method_with_wrong_signature_up ¶
func (r *SampleMongoDbGoMethodsMigrator) V001_method_with_wrong_signature_up(s string) error
func (*SampleMongoDbGoMethodsMigrator) V001_method_with_wrong_signature_up2 ¶
func (r *SampleMongoDbGoMethodsMigrator) V001_method_with_wrong_signature_up2(s *mgo.Session) error
func (*SampleMongoDbGoMethodsMigrator) V002_change_user_cleo_to_cleopatra_down ¶
func (r *SampleMongoDbGoMethodsMigrator) V002_change_user_cleo_to_cleopatra_down() error
func (*SampleMongoDbGoMethodsMigrator) V002_change_user_cleo_to_cleopatra_up ¶
func (r *SampleMongoDbGoMethodsMigrator) V002_change_user_cleo_to_cleopatra_up() error
func (*SampleMongoDbGoMethodsMigrator) V002_organizations_rename_location_field_to_headquarters_down ¶
func (r *SampleMongoDbGoMethodsMigrator) V002_organizations_rename_location_field_to_headquarters_down() error
func (*SampleMongoDbGoMethodsMigrator) V002_organizations_rename_location_field_to_headquarters_up ¶
func (r *SampleMongoDbGoMethodsMigrator) V002_organizations_rename_location_field_to_headquarters_up() error
Click to show internal directories.
Click to hide internal directories.