v1alpha1

package
v0.0.0-...-fba2ed5 Latest Latest
Warning

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

Go to latest
Published: May 4, 2018 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package v1alpha1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package v1alpha1 is a generated protocol buffer package.

It is generated from these files:

team.proto

It has these top-level messages:

CreateRequest
GetRequest
GetResponse
IsAvailableRequest
Address

Package v1alpha1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportTeamsCorsPatterns

func ExportTeamsCorsPatterns() []runtime.Pattern

ExportTeamsCorsPatterns returns an array of grpc gatway mux patterns for Teams service to enable CORS.

func RegisterTeamsHandler

func RegisterTeamsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterTeamsHandler registers the http handlers for service Teams to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterTeamsHandlerClient

func RegisterTeamsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TeamsClient) error

RegisterTeamsHandler registers the http handlers for service Teams to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "TeamsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "TeamsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "TeamsClient" to call the correct interceptors.

func RegisterTeamsHandlerFromEndpoint

func RegisterTeamsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterTeamsHandlerFromEndpoint is same as RegisterTeamsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterTeamsServer

func RegisterTeamsServer(s *grpc.Server, srv TeamsServer)

Types

type Address

type Address struct {
	FirstName       string `protobuf:"bytes,1,opt,name=first_name,json=firstName" json:"first_name,omitempty"`
	LastName        string `protobuf:"bytes,2,opt,name=last_name,json=lastName" json:"last_name,omitempty"`
	Company         string `protobuf:"bytes,3,opt,name=company" json:"company,omitempty"`
	StreetAddress   string `protobuf:"bytes,4,opt,name=street_address,json=streetAddress" json:"street_address,omitempty"`
	ExtendedAddress string `protobuf:"bytes,5,opt,name=extended_address,json=extendedAddress" json:"extended_address,omitempty"`
	Locality        string `protobuf:"bytes,6,opt,name=locality" json:"locality,omitempty"`
	Region          string `protobuf:"bytes,7,opt,name=region" json:"region,omitempty"`
	PostalCode      string `protobuf:"bytes,8,opt,name=postal_code,json=postalCode" json:"postal_code,omitempty"`
	// Ref https://developers.braintreepayments.com/reference/general/countries/ruby
	CountryCodeNumeric string `protobuf:"bytes,9,opt,name=country_code_numeric,json=countryCodeNumeric" json:"country_code_numeric,omitempty"`
}

Example result = Braintree::Address.create(

:first_name          => 'Jenna',
:last_name           => 'Smith',
:company             => 'Braintree',
:street_address      => '1 E Main St',
:extended_address    => 'Suite 403',
:locality            => 'Chicago',
:region              => 'Illinois',
:postal_code         => '60622',
:country_code_numeric => '840'

)

func (*Address) Descriptor

func (*Address) Descriptor() ([]byte, []int)

func (*Address) GetCompany

func (m *Address) GetCompany() string

func (*Address) GetCountryCodeNumeric

func (m *Address) GetCountryCodeNumeric() string

func (*Address) GetExtendedAddress

func (m *Address) GetExtendedAddress() string

func (*Address) GetFirstName

func (m *Address) GetFirstName() string

func (*Address) GetLastName

func (m *Address) GetLastName() string

func (*Address) GetLocality

func (m *Address) GetLocality() string

func (*Address) GetPostalCode

func (m *Address) GetPostalCode() string

func (*Address) GetRegion

func (m *Address) GetRegion() string

func (*Address) GetStreetAddress

func (m *Address) GetStreetAddress() string

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) Reset

func (m *Address) Reset()

func (*Address) String

func (m *Address) String() string

type CreateRequest

type CreateRequest struct {
	Name               string   `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	DisplayName        string   `protobuf:"bytes,2,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
	Email              string   `protobuf:"bytes,3,opt,name=email" json:"email,omitempty"`
	UserName           string   `protobuf:"bytes,4,opt,name=user_name,json=userName" json:"user_name,omitempty"`
	Password           string   `protobuf:"bytes,5,opt,name=password" json:"password,omitempty"`
	InviteEmails       []string `protobuf:"bytes,6,rep,name=invite_emails,json=inviteEmails" json:"invite_emails,omitempty"`
	Subscription       string   `protobuf:"bytes,7,opt,name=subscription" json:"subscription,omitempty"`
	InitialUnits       int64    `protobuf:"varint,8,opt,name=initial_units,json=initialUnits" json:"initial_units,omitempty"`
	PaymentMethodNonce string   `protobuf:"bytes,9,opt,name=payment_method_nonce,json=paymentMethodNonce" json:"payment_method_nonce,omitempty"`
	BillingAddress     *Address `protobuf:"bytes,10,opt,name=billing_address,json=billingAddress" json:"billing_address,omitempty"`
}

func (*CreateRequest) Descriptor

func (*CreateRequest) Descriptor() ([]byte, []int)

func (*CreateRequest) GetBillingAddress

func (m *CreateRequest) GetBillingAddress() *Address

func (*CreateRequest) GetDisplayName

func (m *CreateRequest) GetDisplayName() string

func (*CreateRequest) GetEmail

func (m *CreateRequest) GetEmail() string

func (*CreateRequest) GetInitialUnits

func (m *CreateRequest) GetInitialUnits() int64

func (*CreateRequest) GetInviteEmails

func (m *CreateRequest) GetInviteEmails() []string

func (*CreateRequest) GetName

func (m *CreateRequest) GetName() string

func (*CreateRequest) GetPassword

func (m *CreateRequest) GetPassword() string

func (*CreateRequest) GetPaymentMethodNonce

func (m *CreateRequest) GetPaymentMethodNonce() string

func (*CreateRequest) GetSubscription

func (m *CreateRequest) GetSubscription() string

func (*CreateRequest) GetUserName

func (m *CreateRequest) GetUserName() string

func (*CreateRequest) IsRequest

func (m *CreateRequest) IsRequest()

func (*CreateRequest) ProtoMessage

func (*CreateRequest) ProtoMessage()

func (*CreateRequest) Reset

func (m *CreateRequest) Reset()

func (*CreateRequest) String

func (m *CreateRequest) String() string

func (*CreateRequest) Valid

func (m *CreateRequest) Valid() (*gojsonschema.Result, error)

type GetRequest

type GetRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

func (*GetRequest) Descriptor

func (*GetRequest) Descriptor() ([]byte, []int)

func (*GetRequest) GetName

func (m *GetRequest) GetName() string

func (*GetRequest) IsRequest

func (m *GetRequest) IsRequest()

func (*GetRequest) ProtoMessage

func (*GetRequest) ProtoMessage()

func (*GetRequest) Reset

func (m *GetRequest) Reset()

func (*GetRequest) String

func (m *GetRequest) String() string

func (*GetRequest) Valid

func (m *GetRequest) Valid() (*gojsonschema.Result, error)

type GetResponse

type GetResponse struct {
	Phid string `protobuf:"bytes,1,opt,name=phid" json:"phid,omitempty"`
}

func (*GetResponse) Descriptor

func (*GetResponse) Descriptor() ([]byte, []int)

func (*GetResponse) GetPhid

func (m *GetResponse) GetPhid() string

func (*GetResponse) ProtoMessage

func (*GetResponse) ProtoMessage()

func (*GetResponse) Reset

func (m *GetResponse) Reset()

func (*GetResponse) String

func (m *GetResponse) String() string

type IsAvailableRequest

type IsAvailableRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

func (*IsAvailableRequest) Descriptor

func (*IsAvailableRequest) Descriptor() ([]byte, []int)

func (*IsAvailableRequest) GetName

func (m *IsAvailableRequest) GetName() string

func (*IsAvailableRequest) IsRequest

func (m *IsAvailableRequest) IsRequest()

func (*IsAvailableRequest) ProtoMessage

func (*IsAvailableRequest) ProtoMessage()

func (*IsAvailableRequest) Reset

func (m *IsAvailableRequest) Reset()

func (*IsAvailableRequest) String

func (m *IsAvailableRequest) String() string

func (*IsAvailableRequest) Valid

type TeamsClient

type TeamsClient interface {
	// Creates a new namespace, if name is valid and no namespace with same name exists.
	Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*appscode_dtypes.VoidResponse, error)
	// Gets a namespace, if exists. This can be used to check existence of a namespace.
	Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
	// Check if a namespace name is available meaning name is valid and no namespace with same name exists.
	IsAvailable(ctx context.Context, in *IsAvailableRequest, opts ...grpc.CallOption) (*appscode_dtypes.VoidResponse, error)
}

func NewTeamsClient

func NewTeamsClient(cc *grpc.ClientConn) TeamsClient

type TeamsServer

type TeamsServer interface {
	// Creates a new namespace, if name is valid and no namespace with same name exists.
	Create(context.Context, *CreateRequest) (*appscode_dtypes.VoidResponse, error)
	// Gets a namespace, if exists. This can be used to check existence of a namespace.
	Get(context.Context, *GetRequest) (*GetResponse, error)
	// Check if a namespace name is available meaning name is valid and no namespace with same name exists.
	IsAvailable(context.Context, *IsAvailableRequest) (*appscode_dtypes.VoidResponse, error)
}

Jump to

Keyboard shortcuts

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