nateer

package module
v0.0.0-...-9853724 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: MIT Imports: 10 Imported by: 0

README

nateer

Cloud RunからCloud NATを通して外に出ていくのを試してみる

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExternalSendRequestHandler

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

func NewExternalSendRequestHandler

func NewExternalSendRequestHandler(ctx context.Context, sampleDSStore *SampleDSStore, userStore *UserStore) (*ExternalSendRequestHandler, error)

func (*ExternalSendRequestHandler) Handler

type SampleDSEntity

type SampleDSEntity struct {
	ID        string `datastore:"-"`
	Note      string
	CreatedAt time.Time
}

type SampleDSStore

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

SampleDSStore `--vpc-egress=all-traffic` になっていても、Cloud Datastoreにアクセスできるのかを試すためのもの

func NewSampleDSStore

func NewSampleDSStore(ctx context.Context, ds *datastore.Client) (*SampleDSStore, error)

func (*SampleDSStore) Create

func (s *SampleDSStore) Create(ctx context.Context, entity *SampleDSEntity) (*SampleDSEntity, error)

func (*SampleDSStore) Kind

func (s *SampleDSStore) Kind(ctx context.Context) string

type UserStore

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

func NewUserStore

func NewUserStore(ctx context.Context, spa *spanner.Client) (*UserStore, error)

func (*UserStore) Select

func (s *UserStore) Select(ctx context.Context, id string) (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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