Documentation ¶
Index ¶
- Constants
- func NewSkillsServiceHandler(svc SkillsServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
- type SkillsServiceClient
- type SkillsServiceHandler
- type UnimplementedSkillsServiceHandler
- func (UnimplementedSkillsServiceHandler) AssignSkillGroups(context.Context, *connect_go.Request[skills.AssignSkillGroupsRequest]) (*connect_go.Response[skills.AssignSkillGroupsResponse], error)
- func (UnimplementedSkillsServiceHandler) CreateSkillGroup(context.Context, *connect_go.Request[skills.CreateSkillGroupRequest]) (*connect_go.Response[skills.CreateSkillGroupResponse], error)
- func (UnimplementedSkillsServiceHandler) DeleteSkillGroup(context.Context, *connect_go.Request[skills.DeleteSkillGroupRequest]) (*connect_go.Response[skills.DeleteSkillGroupResponse], error)
- func (UnimplementedSkillsServiceHandler) GetSkillGroup(context.Context, *connect_go.Request[skills.GetSkillGroupRequest]) (*connect_go.Response[skills.GetSkillGroupResponse], error)
- func (UnimplementedSkillsServiceHandler) GetSkillGroupMembers(context.Context, *connect_go.Request[skills.GetSkillGroupMembersRequest]) (*connect_go.Response[skills.GetSkillGroupMembersResponse], error)
- func (UnimplementedSkillsServiceHandler) GetUserSkillGroups(context.Context, *connect_go.Request[skills.GetUserSkillGroupsRequest]) (*connect_go.Response[skills.GetUserSkillGroupsResponse], error)
- func (UnimplementedSkillsServiceHandler) GetUserSkills(context.Context, *connect_go.Request[skills.GetUserSkillsRequest]) (*connect_go.Response[skills.GetUserSkillsResponse], error)
- func (UnimplementedSkillsServiceHandler) ListSkillGroups(context.Context, *connect_go.Request[skills.ListSkillGroupsRequest]) (*connect_go.Response[skills.ListSkillGroupsResponse], error)
- func (UnimplementedSkillsServiceHandler) ListSkillGroupsMembers(context.Context, *connect_go.Request[skills.ListSkillGroupsMembersRequest]) (*connect_go.Response[skills.ListSkillGroupsMembersResponse], error)
- func (UnimplementedSkillsServiceHandler) RevokeSkillGroups(context.Context, *connect_go.Request[skills.RevokeSkillGroupsRequest]) (*connect_go.Response[skills.RevokeSkillGroupsResponse], error)
- func (UnimplementedSkillsServiceHandler) UpdateSkillGroup(context.Context, *connect_go.Request[skills.UpdateSkillGroupRequest]) (*connect_go.Response[skills.UpdateSkillGroupResponse], error)
Constants ¶
const ( // SkillsServiceCreateSkillGroupProcedure is the fully-qualified name of the SkillsService's // CreateSkillGroup RPC. SkillsServiceCreateSkillGroupProcedure = "/api.v1alpha1.org.skills.SkillsService/CreateSkillGroup" // SkillsServiceListSkillGroupsProcedure is the fully-qualified name of the SkillsService's // ListSkillGroups RPC. SkillsServiceListSkillGroupsProcedure = "/api.v1alpha1.org.skills.SkillsService/ListSkillGroups" // SkillsServiceUpdateSkillGroupProcedure is the fully-qualified name of the SkillsService's // UpdateSkillGroup RPC. SkillsServiceUpdateSkillGroupProcedure = "/api.v1alpha1.org.skills.SkillsService/UpdateSkillGroup" // SkillsServiceGetSkillGroupProcedure is the fully-qualified name of the SkillsService's // GetSkillGroup RPC. SkillsServiceGetSkillGroupProcedure = "/api.v1alpha1.org.skills.SkillsService/GetSkillGroup" // SkillsServiceDeleteSkillGroupProcedure is the fully-qualified name of the SkillsService's // DeleteSkillGroup RPC. SkillsServiceDeleteSkillGroupProcedure = "/api.v1alpha1.org.skills.SkillsService/DeleteSkillGroup" // SkillsServiceAssignSkillGroupsProcedure is the fully-qualified name of the SkillsService's // AssignSkillGroups RPC. SkillsServiceAssignSkillGroupsProcedure = "/api.v1alpha1.org.skills.SkillsService/AssignSkillGroups" // SkillsServiceRevokeSkillGroupsProcedure is the fully-qualified name of the SkillsService's // RevokeSkillGroups RPC. SkillsServiceRevokeSkillGroupsProcedure = "/api.v1alpha1.org.skills.SkillsService/RevokeSkillGroups" // SkillsServiceGetUserSkillGroupsProcedure is the fully-qualified name of the SkillsService's // GetUserSkillGroups RPC. SkillsServiceGetUserSkillGroupsProcedure = "/api.v1alpha1.org.skills.SkillsService/GetUserSkillGroups" // SkillsServiceGetUserSkillsProcedure is the fully-qualified name of the SkillsService's // GetUserSkills RPC. SkillsServiceGetUserSkillsProcedure = "/api.v1alpha1.org.skills.SkillsService/GetUserSkills" // SkillsServiceGetSkillGroupMembersProcedure is the fully-qualified name of the SkillsService's // GetSkillGroupMembers RPC. SkillsServiceGetSkillGroupMembersProcedure = "/api.v1alpha1.org.skills.SkillsService/GetSkillGroupMembers" // SkillsServiceListSkillGroupsMembersProcedure is the fully-qualified name of the SkillsService's // ListSkillGroupsMembers RPC. SkillsServiceListSkillGroupsMembersProcedure = "/api.v1alpha1.org.skills.SkillsService/ListSkillGroupsMembers" )
These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.
const (
// SkillsServiceName is the fully-qualified name of the SkillsService service.
SkillsServiceName = "api.v1alpha1.org.skills.SkillsService"
)
Variables ¶
This section is empty.
Functions ¶
func NewSkillsServiceHandler ¶
func NewSkillsServiceHandler(svc SkillsServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
NewSkillsServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.
By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.
Types ¶
type SkillsServiceClient ¶
type SkillsServiceClient interface { // CreateSkillGroup creates a new skill group. CreateSkillGroup(context.Context, *connect_go.Request[skills.CreateSkillGroupRequest]) (*connect_go.Response[skills.CreateSkillGroupResponse], error) // ListSkillGroups lists the skill groups belonging to an organization. ListSkillGroups(context.Context, *connect_go.Request[skills.ListSkillGroupsRequest]) (*connect_go.Response[skills.ListSkillGroupsResponse], error) // UpdateSkillGroup updates a single skill group. UpdateSkillGroup(context.Context, *connect_go.Request[skills.UpdateSkillGroupRequest]) (*connect_go.Response[skills.UpdateSkillGroupResponse], error) // GetSkillGroup gets a single skill group. GetSkillGroup(context.Context, *connect_go.Request[skills.GetSkillGroupRequest]) (*connect_go.Response[skills.GetSkillGroupResponse], error) // DeleteSkillGroup deletes a skill group. DeleteSkillGroup(context.Context, *connect_go.Request[skills.DeleteSkillGroupRequest]) (*connect_go.Response[skills.DeleteSkillGroupResponse], error) // AssignSkillGroups assigns a user to the given skill groups. AssignSkillGroups(context.Context, *connect_go.Request[skills.AssignSkillGroupsRequest]) (*connect_go.Response[skills.AssignSkillGroupsResponse], error) // RevokeSkillGroups revokes the given skill groups from a user. RevokeSkillGroups(context.Context, *connect_go.Request[skills.RevokeSkillGroupsRequest]) (*connect_go.Response[skills.RevokeSkillGroupsResponse], error) // GetUserSkillGroups gets the skill groups assigned to a user. GetUserSkillGroups(context.Context, *connect_go.Request[skills.GetUserSkillGroupsRequest]) (*connect_go.Response[skills.GetUserSkillGroupsResponse], error) // GetUserSkills gets a user's skill proficiencies. GetUserSkills(context.Context, *connect_go.Request[skills.GetUserSkillsRequest]) (*connect_go.Response[skills.GetUserSkillsResponse], error) // GetSkillGroupMembers gets the members of a skill group. GetSkillGroupMembers(context.Context, *connect_go.Request[skills.GetSkillGroupMembersRequest]) (*connect_go.Response[skills.GetSkillGroupMembersResponse], error) // ListSkillGroupsMembers gets the members of a skill group for each skill group in an Org. ListSkillGroupsMembers(context.Context, *connect_go.Request[skills.ListSkillGroupsMembersRequest]) (*connect_go.Response[skills.ListSkillGroupsMembersResponse], error) }
SkillsServiceClient is a client for the api.v1alpha1.org.skills.SkillsService service.
func NewSkillsServiceClient ¶
func NewSkillsServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) SkillsServiceClient
NewSkillsServiceClient constructs a client for the api.v1alpha1.org.skills.SkillsService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.
The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).
type SkillsServiceHandler ¶
type SkillsServiceHandler interface { // CreateSkillGroup creates a new skill group. CreateSkillGroup(context.Context, *connect_go.Request[skills.CreateSkillGroupRequest]) (*connect_go.Response[skills.CreateSkillGroupResponse], error) // ListSkillGroups lists the skill groups belonging to an organization. ListSkillGroups(context.Context, *connect_go.Request[skills.ListSkillGroupsRequest]) (*connect_go.Response[skills.ListSkillGroupsResponse], error) // UpdateSkillGroup updates a single skill group. UpdateSkillGroup(context.Context, *connect_go.Request[skills.UpdateSkillGroupRequest]) (*connect_go.Response[skills.UpdateSkillGroupResponse], error) // GetSkillGroup gets a single skill group. GetSkillGroup(context.Context, *connect_go.Request[skills.GetSkillGroupRequest]) (*connect_go.Response[skills.GetSkillGroupResponse], error) // DeleteSkillGroup deletes a skill group. DeleteSkillGroup(context.Context, *connect_go.Request[skills.DeleteSkillGroupRequest]) (*connect_go.Response[skills.DeleteSkillGroupResponse], error) // AssignSkillGroups assigns a user to the given skill groups. AssignSkillGroups(context.Context, *connect_go.Request[skills.AssignSkillGroupsRequest]) (*connect_go.Response[skills.AssignSkillGroupsResponse], error) // RevokeSkillGroups revokes the given skill groups from a user. RevokeSkillGroups(context.Context, *connect_go.Request[skills.RevokeSkillGroupsRequest]) (*connect_go.Response[skills.RevokeSkillGroupsResponse], error) // GetUserSkillGroups gets the skill groups assigned to a user. GetUserSkillGroups(context.Context, *connect_go.Request[skills.GetUserSkillGroupsRequest]) (*connect_go.Response[skills.GetUserSkillGroupsResponse], error) // GetUserSkills gets a user's skill proficiencies. GetUserSkills(context.Context, *connect_go.Request[skills.GetUserSkillsRequest]) (*connect_go.Response[skills.GetUserSkillsResponse], error) // GetSkillGroupMembers gets the members of a skill group. GetSkillGroupMembers(context.Context, *connect_go.Request[skills.GetSkillGroupMembersRequest]) (*connect_go.Response[skills.GetSkillGroupMembersResponse], error) // ListSkillGroupsMembers gets the members of a skill group for each skill group in an Org. ListSkillGroupsMembers(context.Context, *connect_go.Request[skills.ListSkillGroupsMembersRequest]) (*connect_go.Response[skills.ListSkillGroupsMembersResponse], error) }
SkillsServiceHandler is an implementation of the api.v1alpha1.org.skills.SkillsService service.
type UnimplementedSkillsServiceHandler ¶
type UnimplementedSkillsServiceHandler struct{}
UnimplementedSkillsServiceHandler returns CodeUnimplemented from all methods.
func (UnimplementedSkillsServiceHandler) AssignSkillGroups ¶
func (UnimplementedSkillsServiceHandler) AssignSkillGroups(context.Context, *connect_go.Request[skills.AssignSkillGroupsRequest]) (*connect_go.Response[skills.AssignSkillGroupsResponse], error)
func (UnimplementedSkillsServiceHandler) CreateSkillGroup ¶
func (UnimplementedSkillsServiceHandler) CreateSkillGroup(context.Context, *connect_go.Request[skills.CreateSkillGroupRequest]) (*connect_go.Response[skills.CreateSkillGroupResponse], error)
func (UnimplementedSkillsServiceHandler) DeleteSkillGroup ¶
func (UnimplementedSkillsServiceHandler) DeleteSkillGroup(context.Context, *connect_go.Request[skills.DeleteSkillGroupRequest]) (*connect_go.Response[skills.DeleteSkillGroupResponse], error)
func (UnimplementedSkillsServiceHandler) GetSkillGroup ¶
func (UnimplementedSkillsServiceHandler) GetSkillGroup(context.Context, *connect_go.Request[skills.GetSkillGroupRequest]) (*connect_go.Response[skills.GetSkillGroupResponse], error)
func (UnimplementedSkillsServiceHandler) GetSkillGroupMembers ¶
func (UnimplementedSkillsServiceHandler) GetSkillGroupMembers(context.Context, *connect_go.Request[skills.GetSkillGroupMembersRequest]) (*connect_go.Response[skills.GetSkillGroupMembersResponse], error)
func (UnimplementedSkillsServiceHandler) GetUserSkillGroups ¶
func (UnimplementedSkillsServiceHandler) GetUserSkillGroups(context.Context, *connect_go.Request[skills.GetUserSkillGroupsRequest]) (*connect_go.Response[skills.GetUserSkillGroupsResponse], error)
func (UnimplementedSkillsServiceHandler) GetUserSkills ¶
func (UnimplementedSkillsServiceHandler) GetUserSkills(context.Context, *connect_go.Request[skills.GetUserSkillsRequest]) (*connect_go.Response[skills.GetUserSkillsResponse], error)
func (UnimplementedSkillsServiceHandler) ListSkillGroups ¶
func (UnimplementedSkillsServiceHandler) ListSkillGroups(context.Context, *connect_go.Request[skills.ListSkillGroupsRequest]) (*connect_go.Response[skills.ListSkillGroupsResponse], error)
func (UnimplementedSkillsServiceHandler) ListSkillGroupsMembers ¶ added in v1.7.53
func (UnimplementedSkillsServiceHandler) ListSkillGroupsMembers(context.Context, *connect_go.Request[skills.ListSkillGroupsMembersRequest]) (*connect_go.Response[skills.ListSkillGroupsMembersResponse], error)
func (UnimplementedSkillsServiceHandler) RevokeSkillGroups ¶
func (UnimplementedSkillsServiceHandler) RevokeSkillGroups(context.Context, *connect_go.Request[skills.RevokeSkillGroupsRequest]) (*connect_go.Response[skills.RevokeSkillGroupsResponse], error)
func (UnimplementedSkillsServiceHandler) UpdateSkillGroup ¶
func (UnimplementedSkillsServiceHandler) UpdateSkillGroup(context.Context, *connect_go.Request[skills.UpdateSkillGroupRequest]) (*connect_go.Response[skills.UpdateSkillGroupResponse], error)