accesspb

package
v0.2024.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const TraitName trait.Name = "smartcore.bos.Access"

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	// contains filtered or unexported fields
}

func NewModel

func NewModel(opts ...resource.Option) *Model

func (*Model) GetLastAccessAttempt

func (m *Model) GetLastAccessAttempt(opts ...resource.ReadOption) (*gen.AccessAttempt, error)

func (*Model) PullAccessAttempts

func (m *Model) PullAccessAttempts(ctx context.Context, opts ...resource.ReadOption) <-chan PullAccessAttemptsChange

func (*Model) UpdateLastAccessAttempt

func (m *Model) UpdateLastAccessAttempt(accessAttempt *gen.AccessAttempt, opts ...resource.WriteOption) (*gen.AccessAttempt, error)

type ModelServer

type ModelServer struct {
	gen.UnimplementedAccessApiServer
	// contains filtered or unexported fields
}

func NewModelServer

func NewModelServer(model *Model) *ModelServer

func (*ModelServer) GetLastAccessAttempt

func (m *ModelServer) GetLastAccessAttempt(ctx context.Context, request *gen.GetLastAccessAttemptRequest) (*gen.AccessAttempt, error)

func (*ModelServer) PullAccessAttempts

func (m *ModelServer) PullAccessAttempts(request *gen.PullAccessAttemptsRequest, server gen.AccessApi_PullAccessAttemptsServer) error

func (*ModelServer) Register

func (m *ModelServer) Register(server *grpc.Server)

func (*ModelServer) Unwrap

func (m *ModelServer) Unwrap() any

type PullAccessAttemptsChange

type PullAccessAttemptsChange struct {
	Value      *gen.AccessAttempt
	ChangeTime time.Time
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL