Documentation
¶
Index ¶
- func ConvertCheckPBtoCheck(pb *checkv1.Check) (*check.Check, error)
- func ConvertCheckToCheckPb(obj *check.Check) *checkv1.Check
- func ConvertCompetitionToCompetitionPB(comp *competition.Competition) (*competitionv1.Competition, error)
- func ConvertDynamicConfigPBToDynamicConfig(pb *configv1.DynamicConfig) *config.DynamicConfig
- func ConvertDynamicConfigToDynamicConfigPB(obj *config.DynamicConfig) *configv1.DynamicConfig
- func ConvertHostGroupPBtoHostGroup(requireID bool, pb *host_groupv1.HostGroup) (*hostgroup.HostGroup, error)
- func ConvertHostGroupToHostGroupPb(obj *hostgroup.HostGroup) *host_groupv1.HostGroup
- func ConvertHostPBtoHost(requireID bool, pb *hostv1.Host) (*host.Host, error)
- func ConvertHostToHostPb(obj *host.Host) *hostv1.Host
- func ConvertPolicyPBToPolicy(pb *policyv1.Policy) *policy.Policy
- func ConvertPolicyToPolicyPB(obj *policy.Policy) *policyv1.Policy
- func ConvertPropertyPBtoProperty(pb *propertyv1.Property) (*property.Property, error)
- func ConvertPropertyToPropertyPb(obj *property.Property) *propertyv1.Property
- func ConvertRoundPBtoRound(requireID bool, pb *roundv1.Round) (*round.Round, error)
- func ConvertRoundToRoundPb(obj *round.Round) *roundv1.Round
- func ConvertServiceGroupPBtoServiceGroup(requireID bool, sg *service_groupv1.ServiceGroup) (*servicegroup.ServiceGroup, error)
- func ConvertServiceGroupToServiceGroupPb(obj *servicegroup.ServiceGroup) *service_groupv1.ServiceGroup
- func ConvertServicePBtoService(requireID bool, pb *servicev1.Service) (*service.Service, error)
- func ConvertServiceToServicePb(obj *service.Service) *servicev1.Service
- func ConvertTeamPBtoTeam(requireID bool, pb *teamv1.Team) (*team.Team, error)
- func ConvertTeamToTeamPb(obj *team.Team) *teamv1.Team
- func ConvertUserPBtoUser(requireID bool, pb *userv1.User) (*user.User, error)
- func ConvertUserToUserPb(obj *user.User) *userv1.User
- func UserRoleToRolePB(r string) userv1.Role
- type AuthController
- type CheckController
- func (c *CheckController) GetAllByRoundID(ctx context.Context, request *checkv1.GetAllByRoundIDRequest) (*checkv1.GetAllByRoundIDResponse, error)
- func (c *CheckController) GetAllByServiceID(ctx context.Context, request *checkv1.GetAllByServiceIDRequest) (*checkv1.GetAllByServiceIDResponse, error)
- func (c *CheckController) GetByRoundServiceID(ctx context.Context, request *checkv1.GetByRoundServiceIDRequest) (*checkv1.GetByRoundServiceIDResponse, error)
- type CompetitionController
- func (c CompetitionController) DeleteCompetition(ctx context.Context, _ *competitionv1.DeleteCompetitionRequest) (*competitionv1.DeleteCompetitionResponse, error)
- func (c CompetitionController) FetchCoreCompetition(ctx context.Context, _ *competitionv1.FetchCoreCompetitionRequest) (*competitionv1.FetchCoreCompetitionResponse, error)
- func (c CompetitionController) FetchEntireCompetition(ctx context.Context, _ *competitionv1.FetchEntireCompetitionRequest) (*competitionv1.FetchEntireCompetitionResponse, error)
- func (c CompetitionController) LoadCompetition(ctx context.Context, request *competitionv1.LoadCompetitionRequest) (*competitionv1.LoadCompetitionResponse, error)
- func (c CompetitionController) ResetScores(ctx context.Context, _ *competitionv1.ResetScoresRequest) (*competitionv1.ResetScoresResponse, error)
- type ConfigController
- type HealthController
- type HostController
- func (p HostController) Delete(ctx context.Context, request *hostv1.DeleteRequest) (*hostv1.DeleteResponse, error)
- func (p HostController) GetAll(ctx context.Context, _ *hostv1.GetAllRequest) (*hostv1.GetAllResponse, error)
- func (p HostController) GetByID(ctx context.Context, request *hostv1.GetByIDRequest) (*hostv1.GetByIDResponse, error)
- func (p HostController) Store(ctx context.Context, request *hostv1.StoreRequest) (*hostv1.StoreResponse, error)
- func (p HostController) Update(ctx context.Context, request *hostv1.UpdateRequest) (*hostv1.UpdateResponse, error)
- type HostGroupController
- func (p HostGroupController) Delete(ctx context.Context, request *host_groupv1.DeleteRequest) (*host_groupv1.DeleteResponse, error)
- func (p HostGroupController) GetAll(ctx context.Context, request *host_groupv1.GetAllRequest) (*host_groupv1.GetAllResponse, error)
- func (p HostGroupController) GetByID(ctx context.Context, request *host_groupv1.GetByIDRequest) (*host_groupv1.GetByIDResponse, error)
- func (p HostGroupController) Store(ctx context.Context, request *host_groupv1.StoreRequest) (*host_groupv1.StoreResponse, error)
- func (p HostGroupController) Update(ctx context.Context, request *host_groupv1.UpdateRequest) (*host_groupv1.UpdateResponse, error)
- type PolicyController
- type PropertyController
- func (p PropertyController) Delete(ctx context.Context, request *propertyv1.DeleteRequest) (*propertyv1.DeleteResponse, error)
- func (p PropertyController) GetAll(ctx context.Context, _ *propertyv1.GetAllRequest) (*propertyv1.GetAllResponse, error)
- func (p PropertyController) GetAllByServiceID(ctx context.Context, request *propertyv1.GetAllByServiceIDRequest) (*propertyv1.GetAllByServiceIDResponse, error)
- func (p PropertyController) GetByServiceIDKey(ctx context.Context, request *propertyv1.GetByServiceIDKeyRequest) (*propertyv1.GetByServiceIDKeyResponse, error)
- func (p PropertyController) Store(ctx context.Context, request *propertyv1.StoreRequest) (*propertyv1.StoreResponse, error)
- func (p PropertyController) Update(ctx context.Context, request *propertyv1.UpdateRequest) (*propertyv1.UpdateResponse, error)
- type ReportController
- type RoundController
- func (r RoundController) GetAll(ctx context.Context, _ *roundv1.GetAllRequest) (*roundv1.GetAllResponse, error)
- func (r RoundController) GetByID(ctx context.Context, request *roundv1.GetByIDRequest) (*roundv1.GetByIDResponse, error)
- func (r RoundController) GetLastNonElapsingRound(ctx context.Context, _ *roundv1.GetLastNonElapsingRoundRequest) (*roundv1.GetLastNonElapsingRoundResponse, error)
- func (r RoundController) GetLastRound(ctx context.Context, _ *roundv1.GetLastRoundRequest) (*roundv1.GetLastRoundResponse, error)
- type ServiceController
- func (p ServiceController) Delete(ctx context.Context, request *servicev1.DeleteRequest) (*servicev1.DeleteResponse, error)
- func (p ServiceController) GetAll(ctx context.Context, request *servicev1.GetAllRequest) (*servicev1.GetAllResponse, error)
- func (p ServiceController) GetByID(ctx context.Context, request *servicev1.GetByIDRequest) (*servicev1.GetByIDResponse, error)
- func (p ServiceController) Store(ctx context.Context, request *servicev1.StoreRequest) (*servicev1.StoreResponse, error)
- func (p ServiceController) TestService(ctx context.Context, request *servicev1.TestServiceRequest) (*servicev1.TestServiceResponse, error)
- func (p ServiceController) Update(ctx context.Context, request *servicev1.UpdateRequest) (*servicev1.UpdateResponse, error)
- type ServiceGroupController
- func (p ServiceGroupController) Delete(ctx context.Context, request *service_groupv1.DeleteRequest) (*service_groupv1.DeleteResponse, error)
- func (p ServiceGroupController) GetAll(ctx context.Context, request *service_groupv1.GetAllRequest) (*service_groupv1.GetAllResponse, error)
- func (p ServiceGroupController) GetByID(ctx context.Context, request *service_groupv1.GetByIDRequest) (*service_groupv1.GetByIDResponse, error)
- func (p ServiceGroupController) Redeploy(ctx context.Context, request *service_groupv1.RedeployRequest) (*service_groupv1.RedeployResponse, error)
- func (p ServiceGroupController) Store(ctx context.Context, request *service_groupv1.StoreRequest) (*service_groupv1.StoreResponse, error)
- func (p ServiceGroupController) Update(ctx context.Context, request *service_groupv1.UpdateRequest) (*service_groupv1.UpdateResponse, error)
- type StaticConfigController
- type TeamController
- func (p TeamController) Delete(ctx context.Context, request *teamv1.DeleteRequest) (*teamv1.DeleteResponse, error)
- func (p TeamController) GetAll(ctx context.Context, _ *teamv1.GetAllRequest) (*teamv1.GetAllResponse, error)
- func (p TeamController) GetByID(ctx context.Context, request *teamv1.GetByIDRequest) (*teamv1.GetByIDResponse, error)
- func (p TeamController) Store(ctx context.Context, request *teamv1.StoreRequest) (*teamv1.StoreResponse, error)
- func (p TeamController) Update(ctx context.Context, request *teamv1.UpdateRequest) (*teamv1.UpdateResponse, error)
- type UserController
- func (p UserController) Delete(ctx context.Context, request *userv1.DeleteRequest) (*userv1.DeleteResponse, error)
- func (p UserController) GetAll(ctx context.Context, _ *userv1.GetAllRequest) (*userv1.GetAllResponse, error)
- func (p UserController) GetByID(ctx context.Context, request *userv1.GetByIDRequest) (*userv1.GetByIDResponse, error)
- func (p UserController) GetByUsername(ctx context.Context, request *userv1.GetByUsernameRequest) (*userv1.GetByUsernameResponse, error)
- func (p UserController) Store(ctx context.Context, request *userv1.StoreRequest) (*userv1.StoreResponse, error)
- func (p UserController) Update(ctx context.Context, request *userv1.UpdateRequest) (*userv1.UpdateResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertCompetitionToCompetitionPB ¶
func ConvertCompetitionToCompetitionPB(comp *competition.Competition) (*competitionv1.Competition, error)
func ConvertDynamicConfigPBToDynamicConfig ¶
func ConvertDynamicConfigPBToDynamicConfig(pb *configv1.DynamicConfig) *config.DynamicConfig
func ConvertDynamicConfigToDynamicConfigPB ¶
func ConvertDynamicConfigToDynamicConfigPB(obj *config.DynamicConfig) *configv1.DynamicConfig
func ConvertHostGroupToHostGroupPb ¶
func ConvertHostGroupToHostGroupPb(obj *hostgroup.HostGroup) *host_groupv1.HostGroup
func ConvertHostPBtoHost ¶
func ConvertPropertyPBtoProperty ¶
func ConvertPropertyPBtoProperty(pb *propertyv1.Property) (*property.Property, error)
func ConvertPropertyToPropertyPb ¶
func ConvertPropertyToPropertyPb(obj *property.Property) *propertyv1.Property
func ConvertRoundPBtoRound ¶
func ConvertServiceGroupPBtoServiceGroup ¶
func ConvertServiceGroupPBtoServiceGroup(requireID bool, sg *service_groupv1.ServiceGroup) (*servicegroup.ServiceGroup, error)
func ConvertServiceGroupToServiceGroupPb ¶
func ConvertServiceGroupToServiceGroupPb(obj *servicegroup.ServiceGroup) *service_groupv1.ServiceGroup
func ConvertTeamPBtoTeam ¶
func ConvertUserPBtoUser ¶
func UserRoleToRolePB ¶
Types ¶
type AuthController ¶
type AuthController struct { authv1.UnimplementedAuthServiceServer // contains filtered or unexported fields }
func NewAuthController ¶
func NewAuthController(svc userservice.Serv, jwtManager *auth.Manager) *AuthController
func (AuthController) Login ¶
func (a AuthController) Login(ctx context.Context, request *authv1.LoginRequest) (*authv1.LoginResponse, error)
type CheckController ¶
type CheckController struct { checkv1.UnimplementedCheckServiceServer // contains filtered or unexported fields }
func NewCheckController ¶
func NewCheckController(svc checkservice.Serv, client *util.Store) *CheckController
func (*CheckController) GetAllByRoundID ¶
func (c *CheckController) GetAllByRoundID(ctx context.Context, request *checkv1.GetAllByRoundIDRequest) (*checkv1.GetAllByRoundIDResponse, error)
func (*CheckController) GetAllByServiceID ¶
func (c *CheckController) GetAllByServiceID(ctx context.Context, request *checkv1.GetAllByServiceIDRequest) (*checkv1.GetAllByServiceIDResponse, error)
func (*CheckController) GetByRoundServiceID ¶
func (c *CheckController) GetByRoundServiceID(ctx context.Context, request *checkv1.GetByRoundServiceIDRequest) (*checkv1.GetByRoundServiceIDResponse, error)
type CompetitionController ¶
type CompetitionController struct { competitionv1.UnimplementedCompetitionServiceServer // contains filtered or unexported fields }
func NewCompetitionController ¶
func NewCompetitionController(svc competitionservice.Serv) *CompetitionController
func (CompetitionController) DeleteCompetition ¶
func (c CompetitionController) DeleteCompetition(ctx context.Context, _ *competitionv1.DeleteCompetitionRequest) (*competitionv1.DeleteCompetitionResponse, error)
func (CompetitionController) FetchCoreCompetition ¶
func (c CompetitionController) FetchCoreCompetition(ctx context.Context, _ *competitionv1.FetchCoreCompetitionRequest) (*competitionv1.FetchCoreCompetitionResponse, error)
func (CompetitionController) FetchEntireCompetition ¶
func (c CompetitionController) FetchEntireCompetition(ctx context.Context, _ *competitionv1.FetchEntireCompetitionRequest) (*competitionv1.FetchEntireCompetitionResponse, error)
func (CompetitionController) LoadCompetition ¶
func (c CompetitionController) LoadCompetition(ctx context.Context, request *competitionv1.LoadCompetitionRequest) (*competitionv1.LoadCompetitionResponse, error)
func (CompetitionController) ResetScores ¶
func (c CompetitionController) ResetScores(ctx context.Context, _ *competitionv1.ResetScoresRequest) (*competitionv1.ResetScoresResponse, error)
type ConfigController ¶
type ConfigController struct { configv1.UnimplementedDynamicConfigServiceServer // contains filtered or unexported fields }
func NewConfigController ¶
func NewConfigController(svc configservice.Serv) *ConfigController
func (ConfigController) Get ¶
func (p ConfigController) Get(ctx context.Context, _ *configv1.GetRequest) (*configv1.GetResponse, error)
func (ConfigController) Update ¶
func (p ConfigController) Update(ctx context.Context, request *configv1.UpdateRequest) (*configv1.UpdateResponse, error)
type HealthController ¶ added in v0.3.4
type HealthController struct {
healthv1.UnimplementedHealthServer
}
func NewHealthController ¶ added in v0.3.4
func NewHealthController() *HealthController
func (HealthController) Check ¶ added in v0.3.4
func (h HealthController) Check(ctx context.Context, request *healthv1.HealthCheckRequest) (*healthv1.HealthCheckResponse, error)
type HostController ¶
type HostController struct { hostv1.UnimplementedHostServiceServer // contains filtered or unexported fields }
func NewHostController ¶
func NewHostController(svc hostservice.Serv, client *util.Store) *HostController
func (HostController) Delete ¶
func (p HostController) Delete(ctx context.Context, request *hostv1.DeleteRequest) (*hostv1.DeleteResponse, error)
func (HostController) GetAll ¶
func (p HostController) GetAll(ctx context.Context, _ *hostv1.GetAllRequest) (*hostv1.GetAllResponse, error)
func (HostController) GetByID ¶
func (p HostController) GetByID(ctx context.Context, request *hostv1.GetByIDRequest) (*hostv1.GetByIDResponse, error)
func (HostController) Store ¶
func (p HostController) Store(ctx context.Context, request *hostv1.StoreRequest) (*hostv1.StoreResponse, error)
func (HostController) Update ¶
func (p HostController) Update(ctx context.Context, request *hostv1.UpdateRequest) (*hostv1.UpdateResponse, error)
type HostGroupController ¶
type HostGroupController struct { host_groupv1.UnimplementedHostGroupServiceServer // contains filtered or unexported fields }
func NewHostGroupController ¶
func NewHostGroupController(svc hostgroupservice.Serv) *HostGroupController
func (HostGroupController) Delete ¶
func (p HostGroupController) Delete(ctx context.Context, request *host_groupv1.DeleteRequest) (*host_groupv1.DeleteResponse, error)
func (HostGroupController) GetAll ¶
func (p HostGroupController) GetAll(ctx context.Context, request *host_groupv1.GetAllRequest) (*host_groupv1.GetAllResponse, error)
func (HostGroupController) GetByID ¶
func (p HostGroupController) GetByID(ctx context.Context, request *host_groupv1.GetByIDRequest) (*host_groupv1.GetByIDResponse, error)
func (HostGroupController) Store ¶
func (p HostGroupController) Store(ctx context.Context, request *host_groupv1.StoreRequest) (*host_groupv1.StoreResponse, error)
func (HostGroupController) Update ¶
func (p HostGroupController) Update(ctx context.Context, request *host_groupv1.UpdateRequest) (*host_groupv1.UpdateResponse, error)
type PolicyController ¶
type PolicyController struct { policyv1.UnimplementedPolicyServiceServer // contains filtered or unexported fields }
func NewPolicyController ¶
func NewPolicyController(svc policyservice.Serv, client *policyclient.Client) *PolicyController
func (PolicyController) Get ¶
func (p PolicyController) Get(_ *policyv1.GetRequest, server policyv1.PolicyService_GetServer) error
func (PolicyController) Update ¶
func (p PolicyController) Update(ctx context.Context, request *policyv1.UpdateRequest) (*policyv1.UpdateResponse, error)
type PropertyController ¶
type PropertyController struct { propertyv1.UnimplementedPropertyServiceServer // contains filtered or unexported fields }
func NewPropertyController ¶
func NewPropertyController(svc propertyservice.Serv, client *util.Store) *PropertyController
func (PropertyController) Delete ¶
func (p PropertyController) Delete(ctx context.Context, request *propertyv1.DeleteRequest) (*propertyv1.DeleteResponse, error)
func (PropertyController) GetAll ¶
func (p PropertyController) GetAll(ctx context.Context, _ *propertyv1.GetAllRequest) (*propertyv1.GetAllResponse, error)
func (PropertyController) GetAllByServiceID ¶
func (p PropertyController) GetAllByServiceID(ctx context.Context, request *propertyv1.GetAllByServiceIDRequest) (*propertyv1.GetAllByServiceIDResponse, error)
func (PropertyController) GetByServiceIDKey ¶
func (p PropertyController) GetByServiceIDKey(ctx context.Context, request *propertyv1.GetByServiceIDKeyRequest) (*propertyv1.GetByServiceIDKeyResponse, error)
func (PropertyController) Store ¶
func (p PropertyController) Store(ctx context.Context, request *propertyv1.StoreRequest) (*propertyv1.StoreResponse, error)
func (PropertyController) Update ¶
func (p PropertyController) Update(ctx context.Context, request *propertyv1.UpdateRequest) (*propertyv1.UpdateResponse, error)
type ReportController ¶
type ReportController struct { reportv1.UnimplementedReportServiceServer // contains filtered or unexported fields }
func NewReportController ¶
func NewReportController(svc reportservice.Serv, reportClient *reportclient.Client, client *policyclient.Client) *ReportController
func (*ReportController) Get ¶
func (r *ReportController) Get(_ *reportv1.GetRequest, server reportv1.ReportService_GetServer) error
type RoundController ¶
type RoundController struct { roundv1.UnimplementedRoundServiceServer // contains filtered or unexported fields }
func NewRoundController ¶
func NewRoundController(svc roundservice.Serv) *RoundController
func (RoundController) GetAll ¶
func (r RoundController) GetAll(ctx context.Context, _ *roundv1.GetAllRequest) (*roundv1.GetAllResponse, error)
func (RoundController) GetByID ¶
func (r RoundController) GetByID(ctx context.Context, request *roundv1.GetByIDRequest) (*roundv1.GetByIDResponse, error)
func (RoundController) GetLastNonElapsingRound ¶
func (r RoundController) GetLastNonElapsingRound(ctx context.Context, _ *roundv1.GetLastNonElapsingRoundRequest) (*roundv1.GetLastNonElapsingRoundResponse, error)
func (RoundController) GetLastRound ¶
func (r RoundController) GetLastRound(ctx context.Context, _ *roundv1.GetLastRoundRequest) (*roundv1.GetLastRoundResponse, error)
type ServiceController ¶
type ServiceController struct { servicev1.UnimplementedServiceServiceServer // contains filtered or unexported fields }
func NewServiceController ¶
func NewServiceController(svc service2.Serv, client *util.Store) *ServiceController
func (ServiceController) Delete ¶
func (p ServiceController) Delete(ctx context.Context, request *servicev1.DeleteRequest) (*servicev1.DeleteResponse, error)
func (ServiceController) GetAll ¶
func (p ServiceController) GetAll(ctx context.Context, request *servicev1.GetAllRequest) (*servicev1.GetAllResponse, error)
func (ServiceController) GetByID ¶
func (p ServiceController) GetByID(ctx context.Context, request *servicev1.GetByIDRequest) (*servicev1.GetByIDResponse, error)
func (ServiceController) Store ¶
func (p ServiceController) Store(ctx context.Context, request *servicev1.StoreRequest) (*servicev1.StoreResponse, error)
func (ServiceController) TestService ¶
func (p ServiceController) TestService(ctx context.Context, request *servicev1.TestServiceRequest) (*servicev1.TestServiceResponse, error)
func (ServiceController) Update ¶
func (p ServiceController) Update(ctx context.Context, request *servicev1.UpdateRequest) (*servicev1.UpdateResponse, error)
type ServiceGroupController ¶
type ServiceGroupController struct { service_groupv1.UnimplementedServiceGroupServiceServer // contains filtered or unexported fields }
func NewServiceGroupController ¶
func NewServiceGroupController(svc servicegroupservice.Serv) *ServiceGroupController
func (ServiceGroupController) Delete ¶
func (p ServiceGroupController) Delete(ctx context.Context, request *service_groupv1.DeleteRequest) (*service_groupv1.DeleteResponse, error)
func (ServiceGroupController) GetAll ¶
func (p ServiceGroupController) GetAll(ctx context.Context, request *service_groupv1.GetAllRequest) (*service_groupv1.GetAllResponse, error)
func (ServiceGroupController) GetByID ¶
func (p ServiceGroupController) GetByID(ctx context.Context, request *service_groupv1.GetByIDRequest) (*service_groupv1.GetByIDResponse, error)
func (ServiceGroupController) Redeploy ¶
func (p ServiceGroupController) Redeploy(ctx context.Context, request *service_groupv1.RedeployRequest) (*service_groupv1.RedeployResponse, error)
func (ServiceGroupController) Store ¶
func (p ServiceGroupController) Store(ctx context.Context, request *service_groupv1.StoreRequest) (*service_groupv1.StoreResponse, error)
func (ServiceGroupController) Update ¶
func (p ServiceGroupController) Update(ctx context.Context, request *service_groupv1.UpdateRequest) (*service_groupv1.UpdateResponse, error)
type StaticConfigController ¶
type StaticConfigController struct { configv1.UnimplementedStaticConfigServiceServer // contains filtered or unexported fields }
func NewStaticConfigController ¶
func NewStaticConfigController(svc configservice.StaticServ) *StaticConfigController
func (StaticConfigController) Get ¶
func (s StaticConfigController) Get(ctx context.Context, request *configv1.GetStaticConfigRequest) (*configv1.GetStaticConfigResponse, error)
type TeamController ¶
type TeamController struct { teamv1.UnimplementedTeamServiceServer // contains filtered or unexported fields }
func NewTeamController ¶
func NewTeamController(svc teamservice.Serv) *TeamController
func (TeamController) Delete ¶
func (p TeamController) Delete(ctx context.Context, request *teamv1.DeleteRequest) (*teamv1.DeleteResponse, error)
func (TeamController) GetAll ¶
func (p TeamController) GetAll(ctx context.Context, _ *teamv1.GetAllRequest) (*teamv1.GetAllResponse, error)
func (TeamController) GetByID ¶
func (p TeamController) GetByID(ctx context.Context, request *teamv1.GetByIDRequest) (*teamv1.GetByIDResponse, error)
func (TeamController) Store ¶
func (p TeamController) Store(ctx context.Context, request *teamv1.StoreRequest) (*teamv1.StoreResponse, error)
func (TeamController) Update ¶
func (p TeamController) Update(ctx context.Context, request *teamv1.UpdateRequest) (*teamv1.UpdateResponse, error)
type UserController ¶
type UserController struct { userv1.UnimplementedUserServiceServer // contains filtered or unexported fields }
func NewUserController ¶
func NewUserController(svc userservice.Serv, policyClient *policyclient.Client) *UserController
func (UserController) Delete ¶
func (p UserController) Delete(ctx context.Context, request *userv1.DeleteRequest) (*userv1.DeleteResponse, error)
func (UserController) GetAll ¶
func (p UserController) GetAll(ctx context.Context, _ *userv1.GetAllRequest) (*userv1.GetAllResponse, error)
func (UserController) GetByID ¶
func (p UserController) GetByID(ctx context.Context, request *userv1.GetByIDRequest) (*userv1.GetByIDResponse, error)
func (UserController) GetByUsername ¶
func (p UserController) GetByUsername(ctx context.Context, request *userv1.GetByUsernameRequest) (*userv1.GetByUsernameResponse, error)
func (UserController) Store ¶
func (p UserController) Store(ctx context.Context, request *userv1.StoreRequest) (*userv1.StoreResponse, error)
func (UserController) Update ¶
func (p UserController) Update(ctx context.Context, request *userv1.UpdateRequest) (*userv1.UpdateResponse, error)
Click to show internal directories.
Click to hide internal directories.