service

package
v0.0.0-...-d750ee4 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudStore

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

func NewCloudStore

func NewCloudStore(googleProjectId, googleBucketName string) *CloudStore

func (*CloudStore) CreateBucket

func (c *CloudStore) CreateBucket() (string, error)

func (*CloudStore) Save

func (c *CloudStore) Save(imageType string, imageData bytes.Buffer) (string, error)

type DiskImageStore

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

func NewDiskImageStore

func NewDiskImageStore(imageFolder string) *DiskImageStore

func (*DiskImageStore) Save

func (store *DiskImageStore) Save(imageType string, imageData bytes.Buffer) (string, error)

type ImageInfo

type ImageInfo struct {
	Type string
	Path string
}

type ImageStore

type ImageStore interface {
	Save(imageType string, imageData bytes.Buffer) (string, error)
}

type Profile

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

type ProfileGCPStore

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

func NewProfileGCPStore

func NewProfileGCPStore(projectID string) (*ProfileGCPStore, error)

func (*ProfileGCPStore) SaveProfile

func (pgs *ProfileGCPStore) SaveProfile(profile *pb.Profile) (string, error)

type ProfileMemoryStore

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

func NewProfileMemoryStore

func NewProfileMemoryStore() *ProfileMemoryStore

func (*ProfileMemoryStore) SaveProfile

func (pm *ProfileMemoryStore) SaveProfile(profile *pb.Profile) (string, error)

type ProfileServer

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

func NewProfileServer

func NewProfileServer(imageStore ImageStore, profileStore ProfileStore) *ProfileServer

func (*ProfileServer) CreateImage

func (s *ProfileServer) CreateImage(stream pb.ProfileService_CreateImageServer) error

func (*ProfileServer) CreateProfile

func (s *ProfileServer) CreateProfile(ctx context.Context, in *pb.Profile) (*pb.ProfileId, error)

type ProfileStore

type ProfileStore interface {
	SaveProfile(profile *pb.Profile) (string, error)
}

Jump to

Keyboard shortcuts

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