Documentation
¶
Index ¶
Constants ¶
View Source
const (
PruneInterval = time.Hour * 4
)
View Source
const (
SlugLength = 20
)
View Source
const StoreCtxKey storeCtxKey = "store"
Variables ¶
View Source
var ( ErrExpirationTooSoon = errors.New("expiration too soon") ErrBadType = errors.New("bad share type") )
View Source
var (
)
Functions ¶
func NewService ¶
func NewService() *service
Types ¶
type CreateShareParams ¶
type CreateShareParams struct {
}
type EntityType ¶
type EntityType string
const ( EntityIncident EntityType = "incident" EntityCall EntityType = "call" )
func (EntityType) IsValid ¶
func (et EntityType) IsValid() bool
type Shares ¶
type Shares interface {
NewShare(ctx context.Context, sh CreateShareParams) (*Share, error)
GetShare(ctx context.Context, id string) (*Share, error)
Shares(ctx context.Context, p SharesParams) (shares []*Share, totalCount int, err error)
Create(ctx context.Context, share *Share) error
Delete(ctx context.Context, id string) error
Prune(ctx context.Context) error
}
type SharesParams ¶
type SharesParams struct {
}
Click to show internal directories.
Click to hide internal directories.