adapter

package
v0.0.0-...-468e309 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapters

type Adapters struct {
	S3         *S3Adapter
	Supervisor *SupervisorAdapter
}

func Init

func Init(conf *config.Config) (*Adapters, error)

type S3Adapter

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

func NewS3Adapter

func NewS3Adapter(conf *sharedUtil.S3Config) *S3Adapter

func (*S3Adapter) Delete

func (a *S3Adapter) Delete(key string) error

func (*S3Adapter) ResolveURL

func (a *S3Adapter) ResolveURL(key string) string

func (*S3Adapter) Upload

func (a *S3Adapter) Upload(key string, file multipart.File) (string, error)

type SupervisorAdapter

type SupervisorAdapter struct {
	supervisorpb.SupervisorServiceClient
	// contains filtered or unexported fields
}

func NewSupervisorAdapter

func NewSupervisorAdapter(conf *config.Config) (*SupervisorAdapter, error)

func (*SupervisorAdapter) Conn

func (a *SupervisorAdapter) Conn() *grpc.ClientConn

Jump to

Keyboard shortcuts

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