Documentation
¶
Index ¶
- Constants
- func GetMigrationDrivers(handle *sql.DB) (source.Driver, database.Driver, error)
- type Service
- func (s *Service) BeginTxContext(ctx context.Context) (*sql.Tx, context.CancelFunc, error)
- func (s *Service) Close() error
- func (s *Service) DeleteLogbookByID(id int64) error
- func (s *Service) DeleteLogbookByIDWithContext(ctx context.Context, id int64) error
- func (s *Service) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func (s *Service) FetchAllLogbooks() ([]types.Logbook, error)
- func (s *Service) FetchAllLogbooksWithContext(ctx context.Context) ([]types.Logbook, error)
- func (s *Service) FetchContactedStationByCallsign(callsign string) (types.ContactedStation, error)
- func (s *Service) FetchContactedStationByCallsignWithContext(ctx context.Context, callsign string) (types.ContactedStation, error)
- func (s *Service) FetchCountryByCallsign(callsign string) (types.Country, error)
- func (s *Service) FetchCountryByCallsignWithContext(ctx context.Context, callsign string) (types.Country, error)
- func (s *Service) FetchCountryByName(name string) (types.Country, error)
- func (s *Service) FetchCountryByNameWithContext(ctx context.Context, name string) (types.Country, error)
- func (s *Service) FetchLogbookByID(id int64) (types.Logbook, error)
- func (s *Service) FetchLogbookByIDWithContext(ctx context.Context, id int64) (types.Logbook, error)
- func (s *Service) FetchPendingUploads() ([]types.QsoUpload, error)
- func (s *Service) FetchPendingUploadsWithContext(ctx context.Context) ([]types.QsoUpload, error)
- func (s *Service) FetchQsoById(id int64) (types.Qso, error)
- func (s *Service) FetchQsoByIdWithContext(ctx context.Context, id int64) (types.Qso, error)
- func (s *Service) FetchQsoCountByLogbookId(id int64) (int64, error)
- func (s *Service) FetchQsoCountByLogbookIdWithContext(ctx context.Context, id int64) (int64, error)
- func (s *Service) FetchQsoSliceByCallsign(callsign string) ([]types.ContactHistory, error)
- func (s *Service) FetchQsoSliceByCallsignWithContext(ctx context.Context, callsign string) ([]types.ContactHistory, error)
- func (s *Service) FetchQsoSliceByLogbookId(id int64) (types.QsoSlice, error)
- func (s *Service) FetchQsoSliceByLogbookIdWithContext(ctx context.Context, id int64) (types.QsoSlice, error)
- func (s *Service) FetchQsoSliceBySessionID(id int64) (types.QsoSlice, error)
- func (s *Service) FetchQsoSliceBySessionIDWithContext(ctx context.Context, id int64) (types.QsoSlice, error)
- func (s *Service) FetchQsoSliceNotForwardedWithContext(ctx context.Context) (types.QsoSlice, error)
- func (s *Service) FetchQsoSlicePaging(logbookId int64, pageNum, pageSize int) (types.QsoSlice, error)
- func (s *Service) FetchQsoSlicePagingWithContext(ctx context.Context, logbookId int64, pageNum, pageSize int) (types.QsoSlice, error)
- func (s *Service) GenerateSession() (int64, error)
- func (s *Service) GenerateSessionWithContext(ctx context.Context) (int64, error)
- func (s *Service) Initialize() error
- func (s *Service) InsertContactedStation(station types.ContactedStation) (int64, error)
- func (s *Service) InsertContactedStationWithContext(ctx context.Context, station types.ContactedStation) (int64, error)
- func (s *Service) InsertCountry(country types.Country) (int64, error)
- func (s *Service) InsertCountryWithContext(ctx context.Context, country types.Country) (int64, error)
- func (s *Service) InsertLogbook(logbook types.Logbook) (int64, error)
- func (s *Service) InsertLogbookWithContext(ctx context.Context, logbook types.Logbook) (int64, error)
- func (s *Service) InsertQso(qso types.Qso) (int64, error)
- func (s *Service) InsertQsoUpload(id int64, action action.Action, service upload.OnlineService) error
- func (s *Service) InsertQsoUploadWithContext(ctx context.Context, qsoId int64, action action.Action, ...) error
- func (s *Service) InsertQsoWithContext(ctx context.Context, qso types.Qso) (int64, error)
- func (s *Service) IsContestDuplicateByLogbookID(id int64, callsign, band string) (bool, error)
- func (s *Service) IsContestDuplicateByLogbookIDWithContext(ctx context.Context, id int64, callsign, band string) (bool, error)
- func (s *Service) LogStats(prefix string)
- func (s *Service) Migrate() error
- func (s *Service) Open() error
- func (s *Service) Ping() error
- func (s *Service) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
- func (s *Service) SoftDeleteSessionByID(id int64) error
- func (s *Service) SoftDeleteSessionByIDWithContext(ctx context.Context, id int64) error
- func (s *Service) UpdateContactedStation(station types.ContactedStation) error
- func (s *Service) UpdateContactedStationWithContext(ctx context.Context, station types.ContactedStation) error
- func (s *Service) UpdateCountry(country types.Country) error
- func (s *Service) UpdateCountryWithContext(ctx context.Context, country types.Country) error
- func (s *Service) UpdateQso(qso types.Qso) error
- func (s *Service) UpdateQsoUploadStatus(id int64, status status.Status, action action.Action, attempts int64, ...) error
- func (s *Service) UpdateQsoUploadStatusWithContext(ctx context.Context, id int64, status status.Status, action action.Action, ...) error
- func (s *Service) UpdateQsoWithContext(ctx context.Context, qso types.Qso) error
Constants ¶
View Source
const ServiceName = types.SqliteServiceName
View Source
const (
SqliteDriver = "sqlite"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶ added in v0.0.32
type Service struct {
ConfigService *config.Service `di.inject:"configservice"`
LoggerService *logging.Service `di.inject:"loggingservice"`
DatabaseConfig *types.DatastoreConfig
// contains filtered or unexported fields
}
func (*Service) BeginTxContext ¶ added in v0.0.32
BeginTxContext starts a new transaction.
func (*Service) DeleteLogbookByID ¶ added in v0.0.53
func (*Service) DeleteLogbookByIDWithContext ¶ added in v0.0.53
func (*Service) ExecContext ¶ added in v0.0.32
func (*Service) FetchAllLogbooks ¶ added in v0.0.51
func (*Service) FetchAllLogbooksWithContext ¶ added in v0.0.51
func (*Service) FetchContactedStationByCallsign ¶ added in v0.0.32
func (s *Service) FetchContactedStationByCallsign(callsign string) (types.ContactedStation, error)
func (*Service) FetchContactedStationByCallsignWithContext ¶ added in v0.0.32
func (*Service) FetchCountryByCallsign ¶ added in v0.0.32
func (*Service) FetchCountryByCallsignWithContext ¶ added in v0.0.32
func (*Service) FetchCountryByName ¶ added in v0.0.32
func (*Service) FetchCountryByNameWithContext ¶ added in v0.0.32
func (*Service) FetchLogbookByID ¶ added in v0.0.32
func (*Service) FetchLogbookByIDWithContext ¶ added in v0.0.32
func (*Service) FetchPendingUploads ¶ added in v0.0.38
func (*Service) FetchPendingUploadsWithContext ¶ added in v0.0.38
func (*Service) FetchQsoById ¶ added in v0.0.40
func (*Service) FetchQsoByIdWithContext ¶ added in v0.0.40
func (*Service) FetchQsoCountByLogbookId ¶ added in v0.0.32
func (*Service) FetchQsoCountByLogbookIdWithContext ¶ added in v0.0.32
func (*Service) FetchQsoSliceByCallsign ¶ added in v0.0.32
func (s *Service) FetchQsoSliceByCallsign(callsign string) ([]types.ContactHistory, error)
func (*Service) FetchQsoSliceByCallsignWithContext ¶ added in v0.0.32
func (*Service) FetchQsoSliceByLogbookId ¶ added in v0.0.52
func (*Service) FetchQsoSliceByLogbookIdWithContext ¶ added in v0.0.52
func (*Service) FetchQsoSliceBySessionID ¶ added in v0.0.32
func (*Service) FetchQsoSliceBySessionIDWithContext ¶ added in v0.0.32
func (*Service) FetchQsoSliceNotForwardedWithContext ¶ added in v0.0.37
func (*Service) FetchQsoSlicePaging ¶ added in v0.0.56
func (*Service) FetchQsoSlicePagingWithContext ¶ added in v0.0.56
func (*Service) GenerateSession ¶ added in v0.0.47
func (*Service) GenerateSessionWithContext ¶ added in v0.0.47
func (*Service) Initialize ¶ added in v0.0.32
Initialize initializes the database service. No constructor is provided as this service is to be initialized within an IOC/DI container.
func (*Service) InsertContactedStation ¶ added in v0.0.32
func (s *Service) InsertContactedStation(station types.ContactedStation) (int64, error)
func (*Service) InsertContactedStationWithContext ¶ added in v0.0.32
func (*Service) InsertCountry ¶ added in v0.0.32
func (*Service) InsertCountryWithContext ¶ added in v0.0.32
func (*Service) InsertLogbook ¶ added in v0.0.51
func (*Service) InsertLogbookWithContext ¶ added in v0.0.51
func (*Service) InsertQsoUpload ¶ added in v0.0.38
func (*Service) InsertQsoUploadWithContext ¶ added in v0.0.38
func (*Service) InsertQsoWithContext ¶ added in v0.0.32
func (*Service) IsContestDuplicateByLogbookID ¶ added in v0.0.36
func (*Service) IsContestDuplicateByLogbookIDWithContext ¶ added in v0.0.54
func (*Service) QueryContext ¶ added in v0.0.32
func (*Service) SoftDeleteSessionByID ¶ added in v0.0.32
func (*Service) SoftDeleteSessionByIDWithContext ¶ added in v0.0.32
func (*Service) UpdateContactedStation ¶ added in v0.0.32
func (s *Service) UpdateContactedStation(station types.ContactedStation) error
func (*Service) UpdateContactedStationWithContext ¶ added in v0.0.32
func (*Service) UpdateCountry ¶ added in v0.0.32
func (*Service) UpdateCountryWithContext ¶ added in v0.0.32
func (*Service) UpdateQsoUploadStatus ¶ added in v0.0.39
func (*Service) UpdateQsoUploadStatusWithContext ¶ added in v0.0.39
Source Files
¶
Click to show internal directories.
Click to hide internal directories.