Documentation
¶
Index ¶
- func SetService(svc Service)
- type DefaultOrganisationService
- func (*DefaultOrganisationService) Create(ctx context.ServiceContext, client *clients.GQLClient, ...) (*commons.Organisation, error)
- func (*DefaultOrganisationService) Get(ctx context.ServiceContext, client *clients.GQLClient, id string) (*commons.Organisation, error)
- func (*DefaultOrganisationService) GetByEnvironment(ctx context.ServiceContext, client *clients.GQLClient, env_id string) (*commons.Organisation, error)
- func (*DefaultOrganisationService) GetServerKeyCopy(ctx context.ServiceContext, client *clients.GQLClient, id string) ([]byte, error)
- func (*DefaultOrganisationService) List(ctx context.ServiceContext, client *clients.GQLClient) (*[]commons.Organisation, error)
- func (*DefaultOrganisationService) UpdateInviteLimit(ctx context.ServiceContext, client *clients.GQLClient, ...) error
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetService ¶
func SetService(svc Service)
Types ¶
type DefaultOrganisationService ¶
type DefaultOrganisationService struct{}
func (*DefaultOrganisationService) Create ¶
func (*DefaultOrganisationService) Create(ctx context.ServiceContext, client *clients.GQLClient, options *commons.CreateOptions) (*commons.Organisation, error)
func (*DefaultOrganisationService) Get ¶
func (*DefaultOrganisationService) Get(ctx context.ServiceContext, client *clients.GQLClient, id string) (*commons.Organisation, error)
func (*DefaultOrganisationService) GetByEnvironment ¶
func (*DefaultOrganisationService) GetByEnvironment(ctx context.ServiceContext, client *clients.GQLClient, env_id string) (*commons.Organisation, error)
func (*DefaultOrganisationService) GetServerKeyCopy ¶
func (*DefaultOrganisationService) GetServerKeyCopy(ctx context.ServiceContext, client *clients.GQLClient, id string) ([]byte, error)
func (*DefaultOrganisationService) List ¶
func (*DefaultOrganisationService) List(ctx context.ServiceContext, client *clients.GQLClient) (*[]commons.Organisation, error)
func (*DefaultOrganisationService) UpdateInviteLimit ¶
func (*DefaultOrganisationService) UpdateInviteLimit(ctx context.ServiceContext, client *clients.GQLClient, options *commons.UpdateInviteLimitOptions) error
type Service ¶
type Service interface {
Get(context.ServiceContext, *clients.GQLClient, string) (*commons.Organisation, error)
GetByEnvironment(context.ServiceContext, *clients.GQLClient, string) (*commons.Organisation, error)
Create(context.ServiceContext, *clients.GQLClient, *commons.CreateOptions) (*commons.Organisation, error)
List(context.ServiceContext, *clients.GQLClient) (*[]commons.Organisation, error)
UpdateInviteLimit(context.ServiceContext, *clients.GQLClient, *commons.UpdateInviteLimitOptions) error
GetServerKeyCopy(context.ServiceContext, *clients.GQLClient, string) ([]byte, error)
}
func GetService ¶
func GetService() Service
Click to show internal directories.
Click to hide internal directories.