Documentation ¶
Index ¶
- func RegisterService(ctx context.Context, scheme string, f ServiceInitializeFunc) error
- func Schemes() []string
- func SetParametersFromURI(ctx context.Context, s Service, uri string) error
- type FSService
- func (s *FSService) Close(ctx context.Context) error
- func (s *FSService) LastInt(ctx context.Context) (int64, error)
- func (s *FSService) NextInt(ctx context.Context) (int64, error)
- func (s *FSService) SetIncrement(ctx context.Context, i int64) error
- func (s *FSService) SetLastInt(ctx context.Context, i int64) error
- func (s *FSService) SetOffset(ctx context.Context, i int64) error
- type MemoryService
- func (s *MemoryService) Close(ctx context.Context) error
- func (s *MemoryService) LastInt(ctx context.Context) (int64, error)
- func (s *MemoryService) NextInt(ctx context.Context) (int64, error)
- func (s *MemoryService) SetIncrement(ctx context.Context, i int64) error
- func (s *MemoryService) SetLastInt(ctx context.Context, i int64) error
- func (s *MemoryService) SetOffset(ctx context.Context, i int64) error
- type Service
- type ServiceInitializeFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterService ¶ added in v0.9.0
func RegisterService(ctx context.Context, scheme string, f ServiceInitializeFunc) error
Types ¶
type FSService ¶ added in v0.9.0
type FSService struct { Service // contains filtered or unexported fields }
func (*FSService) SetIncrement ¶ added in v0.9.0
func (*FSService) SetLastInt ¶ added in v0.9.0
type MemoryService ¶ added in v0.9.0
type MemoryService struct { Service // contains filtered or unexported fields }
func (*MemoryService) Close ¶ added in v0.9.0
func (s *MemoryService) Close(ctx context.Context) error
func (*MemoryService) LastInt ¶ added in v0.9.0
func (s *MemoryService) LastInt(ctx context.Context) (int64, error)
func (*MemoryService) NextInt ¶ added in v0.9.0
func (s *MemoryService) NextInt(ctx context.Context) (int64, error)
func (*MemoryService) SetIncrement ¶ added in v0.9.0
func (s *MemoryService) SetIncrement(ctx context.Context, i int64) error
func (*MemoryService) SetLastInt ¶ added in v0.9.0
func (s *MemoryService) SetLastInt(ctx context.Context, i int64) error
type Service ¶ added in v0.9.0
type Service interface { NextInt(context.Context) (int64, error) LastInt(context.Context) (int64, error) SetLastInt(context.Context, int64) error SetOffset(context.Context, int64) error SetIncrement(context.Context, int64) error Close(context.Context) error }
func NewFSService ¶ added in v0.9.0
func NewMemoryService ¶ added in v0.9.0
Click to show internal directories.
Click to hide internal directories.