Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { PutObjectWithContext(ctx context.Context, bucketName, objectName string, reader io.Reader, objectSize int64, opts minio.PutObjectOptions) (n int64, err error) GetObjectWithContext(ctx context.Context, bucketName, objectName string, opts minio.GetObjectOptions) (*minio.Object, error) RemoveObject(bucketName, objectName string) error BucketExists(bucketName string) (found bool, err error) MakeBucket(bucketName, location string) error }
type Repository ¶
type Service ¶
type Service interface { Put(id string, documentation []byte, apiSpec []byte, eventsSpec []byte) apperrors.AppError Get(id string) (documentation []byte, apiSpec []byte, eventsSpec []byte, apperr apperrors.AppError) Remove(id string) apperrors.AppError }
func NewService ¶
func NewService(repository Repository) Service
Source Files
¶
- repository.go
- service.go
Click to show internal directories.
Click to hide internal directories.