internal/storage/postgres/storage.go
func (s *Storage) Start(ctx context.Context, accessToken, refreshToken, sid, sc string, b map[string]string) (*mnemosynerpc.Session, error) {
	span, ctx := opentracing.StartSpanFromContext(ctx, "postgres.storage.start")
	defer span.Finish()

	ent := &sessionEntity{
		AccessToken:   accessToken,
		RefreshToken:  refreshToken,
		SubjectID:     sid,
		SubjectClient: sc,
		Bag:           model.Bag(b),
	}

	if err := s.save(ctx, ent); err != nil {
		return nil, err
	}

	return ent.session()
}
func (s *Storage) Start(ctx context.Context, accessToken, refreshToken, sid, sc string, b map[string]string) (*mnemosynerpc.Session, error) {
	span, ctx := opentracing.StartSpanFromContext(ctx, "postgres.storage.start")
	defer span.Finish()

	ent := &sessionEntity{
		AccessToken:   accessToken,
		RefreshToken:  refreshToken,
		SubjectID:     sid,
		SubjectClient: sc,
		Bag:           model.Bag(b),
	}

	if err := s.save(ctx, ent); err != nil {
		return nil, err
	}

	return ent.session()
}
// Start implements storage interface.