role

package
v0.55.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

type Consumer struct {
	Storage Storage
}

func (Consumer) A

func (m Consumer) A(ctx context.Context, ent Entity) error

type Entity

type Entity struct {
	ID     string
	Field1 string
	Field2 int
}

type Storage

type Storage interface {
	CreateEntity(ctx context.Context, ent *Entity) error
	FindEntityByID(ctx context.Context, ent *Entity, id string) (bool, error)
}

role interface

Jump to

Keyboard shortcuts

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