Documentation ¶
Index ¶
- Constants
- Variables
- type Organization
- type Organization_v2
- type SampleMongoDbMigrator
- func (r *SampleMongoDbMigrator) DbName() string
- func (r *SampleMongoDbMigrator) V001_init_organizations_down(session *mgo.Session) error
- func (r *SampleMongoDbMigrator) V001_init_organizations_up(session *mgo.Session) error
- func (r *SampleMongoDbMigrator) V001_init_users_down(session *mgo.Session) error
- func (r *SampleMongoDbMigrator) V001_init_users_up(session *mgo.Session) error
- func (r *SampleMongoDbMigrator) V001_method_with_wrong_signature_down(session *mgo.Session) (bool, error)
- func (r *SampleMongoDbMigrator) V001_method_with_wrong_signature_up(s string) error
- func (r *SampleMongoDbMigrator) V002_change_user_cleo_to_cleopatra_down(session *mgo.Session) error
- func (r *SampleMongoDbMigrator) V002_change_user_cleo_to_cleopatra_up(session *mgo.Session) error
- func (r *SampleMongoDbMigrator) V002_organizations_rename_location_field_to_headquarters_down(session *mgo.Session) error
- func (r *SampleMongoDbMigrator) V002_organizations_rename_location_field_to_headquarters_up(session *mgo.Session) 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 SampleMongoDbMigrator ¶
type SampleMongoDbMigrator struct { }
func (*SampleMongoDbMigrator) DbName ¶
func (r *SampleMongoDbMigrator) DbName() string
func (*SampleMongoDbMigrator) V001_init_organizations_down ¶
func (r *SampleMongoDbMigrator) V001_init_organizations_down(session *mgo.Session) error
func (*SampleMongoDbMigrator) V001_init_organizations_up ¶
func (r *SampleMongoDbMigrator) V001_init_organizations_up(session *mgo.Session) error
func (*SampleMongoDbMigrator) V001_init_users_down ¶
func (r *SampleMongoDbMigrator) V001_init_users_down(session *mgo.Session) error
func (*SampleMongoDbMigrator) V001_init_users_up ¶
func (r *SampleMongoDbMigrator) V001_init_users_up(session *mgo.Session) error
func (*SampleMongoDbMigrator) V001_method_with_wrong_signature_down ¶
func (r *SampleMongoDbMigrator) V001_method_with_wrong_signature_down(session *mgo.Session) (bool, error)
func (*SampleMongoDbMigrator) V001_method_with_wrong_signature_up ¶
func (r *SampleMongoDbMigrator) V001_method_with_wrong_signature_up(s string) error
func (*SampleMongoDbMigrator) V002_change_user_cleo_to_cleopatra_down ¶
func (r *SampleMongoDbMigrator) V002_change_user_cleo_to_cleopatra_down(session *mgo.Session) error
func (*SampleMongoDbMigrator) V002_change_user_cleo_to_cleopatra_up ¶
func (r *SampleMongoDbMigrator) V002_change_user_cleo_to_cleopatra_up(session *mgo.Session) error
func (*SampleMongoDbMigrator) V002_organizations_rename_location_field_to_headquarters_down ¶
func (r *SampleMongoDbMigrator) V002_organizations_rename_location_field_to_headquarters_down(session *mgo.Session) error
func (*SampleMongoDbMigrator) V002_organizations_rename_location_field_to_headquarters_up ¶
func (r *SampleMongoDbMigrator) V002_organizations_rename_location_field_to_headquarters_up(session *mgo.Session) error
Click to show internal directories.
Click to hide internal directories.