Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService interface { Service LoginRequest(ctx context.Context, loginRequest *domain.LoginRequest) (*domain.LoginResp, error) LogoutRequest(ctx context.Context, logoutRequest *domain.Logout) error ClientTokenCallback(ctx context.Context, loginCallback *domain.LoginCallback) (*domain.ClientToken, error) Register(ctx context.Context, user *domain.RegisterUser) (*domain.User, error) RetrospectToken(ctx context.Context, token string) (*domain.IntroSpectTokenResult, error) RefreshToken(ctx context.Context, refreshToken string) (*domain.ClientToken, error) }
type InfoService ¶
type MqttService ¶
type MqttService interface { Service HandleMessage(ctx context.Context, payload *domain.MqttPayload) (*domain.MqttPayload, error) SetConnected(bool) }
type RegionService ¶
type SensorService ¶
type Services ¶
type Services struct { InfoService InfoService MqttService MqttService TreeService TreeService AuthService AuthService RegionService RegionService TreeClusterService TreeClusterService SensorService SensorService }
func (*Services) AllServicesReady ¶
type TreeClusterService ¶
type TreeClusterService interface { Service GetAll(ctx context.Context) ([]*domain.TreeCluster, error) GetByID(ctx context.Context, id int32) (*domain.TreeCluster, error) Create(ctx context.Context, tc *domain.TreeClusterCreate) (*domain.TreeCluster, error) Update(ctx context.Context, id int32, tc *domain.TreeClusterUpdate) (*domain.TreeCluster, error) Delete(ctx context.Context, id int32) error }
type TreeService ¶
type TreeService interface { Service ImportTree(ctx context.Context, trees []*domain.TreeImport) error GetAll(ctx context.Context) ([]*domain.Tree, error) GetByID(ctx context.Context, id int32) (*domain.Tree, error) Update(ctx context.Context, id int32, tc *domain.TreeUpdate) (*domain.Tree, error) Create(ctx context.Context, treeCreate *domain.TreeCreate) (*domain.Tree, error) Delete(ctx context.Context, id int32) error }
Click to show internal directories.
Click to hide internal directories.