clients

package
v0.9.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateClientDTO

type CreateClientDTO struct {
	CallbackURL    string
	BackendVersion string
	BackendAddress *string
	BackendDomain  *string
}

type CreateClientResult

type CreateClientResult struct {
	AdminSecret string
	Client      *models.Client
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(
	st store.IStore,
	systemSvc system.IService,
	madminSvc *madmin.Service,
) *Service

func (*Service) ChangeCallbackURL

func (s *Service) ChangeCallbackURL(ctx context.Context, clientID uuid.UUID, callbackURL string) error

ChangeCallbackURL changes the callback URL for the client.

func (*Service) Create

Create creates a new client.

func (*Service) ExistsByID

func (s *Service) ExistsByID(ctx context.Context, clientID uuid.UUID) (bool, error)

ExistsByID checks if the client exists by the ID.

func (*Service) GetAll

func (s *Service) GetAll(ctx context.Context) ([]*models.Client, error)

GetAll returns all clients.

func (*Service) GetByID

func (s *Service) GetByID(ctx context.Context, clientID uuid.UUID) (*models.Client, error)

GetByID returns the client by the ID.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL