Documentation ¶
Index ¶
- type AssociationStateResult
- type GroupMessageValidationResult
- type KeyPackageValidationResult
- type MLSValidationService
- type MLSValidationServiceImpl
- func (s *MLSValidationServiceImpl) GetAssociationState(ctx context.Context, oldUpdates []*associations.IdentityUpdate, ...) (*AssociationStateResult, error)
- func (s *MLSValidationServiceImpl) GetAssociationStateFromEnvelopes(ctx context.Context, oldUpdateEnvelopes []queries.GatewayEnvelope, ...) (*AssociationStateResult, error)
- func (s *MLSValidationServiceImpl) ValidateGroupMessages(ctx context.Context, groupMessages []*mlsv1.GroupMessageInput) ([]GroupMessageValidationResult, error)
- func (s *MLSValidationServiceImpl) ValidateKeyPackages(ctx context.Context, keyPackages [][]byte) ([]KeyPackageValidationResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssociationStateResult ¶
type AssociationStateResult struct { AssociationState *associations.AssociationState `protobuf:"bytes,1,opt,name=association_state,json=associationState,proto3" json:"association_state,omitempty"` StateDiff *associations.AssociationStateDiff `protobuf:"bytes,2,opt,name=state_diff,json=stateDiff,proto3" json:"state_diff,omitempty"` }
type GroupMessageValidationResult ¶
type GroupMessageValidationResult struct {
GroupId string
}
type KeyPackageValidationResult ¶
type KeyPackageValidationResult struct { InstallationKey []byte Credential *identity_proto.MlsCredential Expiration uint64 }
type MLSValidationService ¶
type MLSValidationService interface { ValidateKeyPackages( ctx context.Context, keyPackages [][]byte, ) ([]KeyPackageValidationResult, error) ValidateGroupMessages( ctx context.Context, groupMessages []*mlsv1.GroupMessageInput, ) ([]GroupMessageValidationResult, error) GetAssociationState( ctx context.Context, oldUpdates []*associations.IdentityUpdate, newUpdates []*associations.IdentityUpdate, ) (*AssociationStateResult, error) GetAssociationStateFromEnvelopes( ctx context.Context, oldUpdates []queries.GatewayEnvelope, newIdentityUpdate *associations.IdentityUpdate, ) (*AssociationStateResult, error) }
type MLSValidationServiceImpl ¶
type MLSValidationServiceImpl struct {
// contains filtered or unexported fields
}
func NewMlsValidationService ¶
func NewMlsValidationService( ctx context.Context, log *zap.Logger, cfg config.MlsValidationOptions, ) (*MLSValidationServiceImpl, error)
func (*MLSValidationServiceImpl) GetAssociationState ¶
func (s *MLSValidationServiceImpl) GetAssociationState( ctx context.Context, oldUpdates []*associations.IdentityUpdate, newUpdates []*associations.IdentityUpdate, ) (*AssociationStateResult, error)
func (*MLSValidationServiceImpl) GetAssociationStateFromEnvelopes ¶
func (s *MLSValidationServiceImpl) GetAssociationStateFromEnvelopes( ctx context.Context, oldUpdateEnvelopes []queries.GatewayEnvelope, newUpdate *associations.IdentityUpdate, ) (*AssociationStateResult, error)
func (*MLSValidationServiceImpl) ValidateGroupMessages ¶
func (s *MLSValidationServiceImpl) ValidateGroupMessages( ctx context.Context, groupMessages []*mlsv1.GroupMessageInput, ) ([]GroupMessageValidationResult, error)
func (*MLSValidationServiceImpl) ValidateKeyPackages ¶
func (s *MLSValidationServiceImpl) ValidateKeyPackages( ctx context.Context, keyPackages [][]byte, ) ([]KeyPackageValidationResult, error)
Click to show internal directories.
Click to hide internal directories.