Documentation ¶
Index ¶
- Variables
- func NewTLS(caFile, certFile, keyFile string) (*tls.Config, error)
- func RegisterSysAPIServer(s grpc.ServiceRegistrar, srv SysAPIServer)
- type AuthSubject
- func (*AuthSubject) Descriptor() ([]byte, []int)deprecated
- func (x *AuthSubject) GetProviderId() string
- func (x *AuthSubject) GetSubjectId() string
- func (x *AuthSubject) GetUserId() string
- func (*AuthSubject) ProtoMessage()
- func (x *AuthSubject) ProtoReflect() protoreflect.Message
- func (x *AuthSubject) Reset()
- func (x *AuthSubject) String() string
- type AuthSubjectsRequest
- func (*AuthSubjectsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthSubjectsRequest) GetProviderId() string
- func (x *AuthSubjectsRequest) GetUserId() string
- func (*AuthSubjectsRequest) ProtoMessage()
- func (x *AuthSubjectsRequest) ProtoReflect() protoreflect.Message
- func (x *AuthSubjectsRequest) Reset()
- func (x *AuthSubjectsRequest) String() string
- type DeleteUserRequest
- type DeleteUserResponse
- type SysAPIClient
- type SysAPIServer
- type SysAPI_AuthSubjectsClient
- type SysAPI_AuthSubjectsServer
- type UnimplementedSysAPIServer
- type UnsafeSysAPIServer
Constants ¶
This section is empty.
Variables ¶
var File_pkg_sysapi_sysapi_proto protoreflect.FileDescriptor
var SysAPI_ServiceDesc = grpc.ServiceDesc{ ServiceName: "goalert.v1.SysAPI", HandlerType: (*SysAPIServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "DeleteUser", Handler: _SysAPI_DeleteUser_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "AuthSubjects", Handler: _SysAPI_AuthSubjects_Handler, ServerStreams: true, }, }, Metadata: "pkg/sysapi/sysapi.proto", }
SysAPI_ServiceDesc is the grpc.ServiceDesc for SysAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSysAPIServer ¶
func RegisterSysAPIServer(s grpc.ServiceRegistrar, srv SysAPIServer)
Types ¶
type AuthSubject ¶
type AuthSubject struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` ProviderId string `protobuf:"bytes,2,opt,name=provider_id,json=providerId,proto3" json:"provider_id,omitempty"` SubjectId string `protobuf:"bytes,3,opt,name=subject_id,json=subjectId,proto3" json:"subject_id,omitempty"` // contains filtered or unexported fields }
func (*AuthSubject) Descriptor
deprecated
func (*AuthSubject) Descriptor() ([]byte, []int)
Deprecated: Use AuthSubject.ProtoReflect.Descriptor instead.
func (*AuthSubject) GetProviderId ¶
func (x *AuthSubject) GetProviderId() string
func (*AuthSubject) GetSubjectId ¶
func (x *AuthSubject) GetSubjectId() string
func (*AuthSubject) GetUserId ¶
func (x *AuthSubject) GetUserId() string
func (*AuthSubject) ProtoMessage ¶
func (*AuthSubject) ProtoMessage()
func (*AuthSubject) ProtoReflect ¶
func (x *AuthSubject) ProtoReflect() protoreflect.Message
func (*AuthSubject) Reset ¶
func (x *AuthSubject) Reset()
func (*AuthSubject) String ¶
func (x *AuthSubject) String() string
type AuthSubjectsRequest ¶
type AuthSubjectsRequest struct { ProviderId string `protobuf:"bytes,1,opt,name=provider_id,json=providerId,proto3" json:"provider_id,omitempty"` UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*AuthSubjectsRequest) Descriptor
deprecated
func (*AuthSubjectsRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthSubjectsRequest.ProtoReflect.Descriptor instead.
func (*AuthSubjectsRequest) GetProviderId ¶
func (x *AuthSubjectsRequest) GetProviderId() string
func (*AuthSubjectsRequest) GetUserId ¶
func (x *AuthSubjectsRequest) GetUserId() string
func (*AuthSubjectsRequest) ProtoMessage ¶
func (*AuthSubjectsRequest) ProtoMessage()
func (*AuthSubjectsRequest) ProtoReflect ¶
func (x *AuthSubjectsRequest) ProtoReflect() protoreflect.Message
func (*AuthSubjectsRequest) Reset ¶
func (x *AuthSubjectsRequest) Reset()
func (*AuthSubjectsRequest) String ¶
func (x *AuthSubjectsRequest) String() string
type DeleteUserRequest ¶
type DeleteUserRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*DeleteUserRequest) Descriptor
deprecated
func (*DeleteUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.
func (*DeleteUserRequest) GetUserId ¶
func (x *DeleteUserRequest) GetUserId() string
func (*DeleteUserRequest) ProtoMessage ¶
func (*DeleteUserRequest) ProtoMessage()
func (*DeleteUserRequest) ProtoReflect ¶
func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message
func (*DeleteUserRequest) Reset ¶
func (x *DeleteUserRequest) Reset()
func (*DeleteUserRequest) String ¶
func (x *DeleteUserRequest) String() string
type DeleteUserResponse ¶
type DeleteUserResponse struct {
// contains filtered or unexported fields
}
func (*DeleteUserResponse) Descriptor
deprecated
func (*DeleteUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserResponse.ProtoReflect.Descriptor instead.
func (*DeleteUserResponse) ProtoMessage ¶
func (*DeleteUserResponse) ProtoMessage()
func (*DeleteUserResponse) ProtoReflect ¶
func (x *DeleteUserResponse) ProtoReflect() protoreflect.Message
func (*DeleteUserResponse) Reset ¶
func (x *DeleteUserResponse) Reset()
func (*DeleteUserResponse) String ¶
func (x *DeleteUserResponse) String() string
type SysAPIClient ¶
type SysAPIClient interface { AuthSubjects(ctx context.Context, in *AuthSubjectsRequest, opts ...grpc.CallOption) (SysAPI_AuthSubjectsClient, error) DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*DeleteUserResponse, error) }
SysAPIClient is the client API for SysAPI service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewSysAPIClient ¶
func NewSysAPIClient(cc grpc.ClientConnInterface) SysAPIClient
type SysAPIServer ¶
type SysAPIServer interface { AuthSubjects(*AuthSubjectsRequest, SysAPI_AuthSubjectsServer) error DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error) // contains filtered or unexported methods }
SysAPIServer is the server API for SysAPI service. All implementations must embed UnimplementedSysAPIServer for forward compatibility
type SysAPI_AuthSubjectsClient ¶
type SysAPI_AuthSubjectsClient interface { Recv() (*AuthSubject, error) grpc.ClientStream }
type SysAPI_AuthSubjectsServer ¶
type SysAPI_AuthSubjectsServer interface { Send(*AuthSubject) error grpc.ServerStream }
type UnimplementedSysAPIServer ¶
type UnimplementedSysAPIServer struct { }
UnimplementedSysAPIServer must be embedded to have forward compatible implementations.
func (UnimplementedSysAPIServer) AuthSubjects ¶
func (UnimplementedSysAPIServer) AuthSubjects(*AuthSubjectsRequest, SysAPI_AuthSubjectsServer) error
func (UnimplementedSysAPIServer) DeleteUser ¶
func (UnimplementedSysAPIServer) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error)
type UnsafeSysAPIServer ¶
type UnsafeSysAPIServer interface {
// contains filtered or unexported methods
}
UnsafeSysAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SysAPIServer will result in compilation errors.