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 ¶
- func ExportTeamsCorsPatterns() []runtime.Pattern
- func RegisterTeamsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterTeamsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TeamsClient) error
- func RegisterTeamsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterTeamsServer(s *grpc.Server, srv TeamsServer)
- type Address
- func (*Address) Descriptor() ([]byte, []int)
- func (m *Address) GetCompany() string
- func (m *Address) GetCountryCodeNumeric() string
- func (m *Address) GetExtendedAddress() string
- func (m *Address) GetFirstName() string
- func (m *Address) GetLastName() string
- func (m *Address) GetLocality() string
- func (m *Address) GetPostalCode() string
- func (m *Address) GetRegion() string
- func (m *Address) GetStreetAddress() string
- func (*Address) ProtoMessage()
- func (m *Address) Reset()
- func (m *Address) String() string
- type CreateRequest
- func (*CreateRequest) Descriptor() ([]byte, []int)
- func (m *CreateRequest) GetBillingAddress() *Address
- func (m *CreateRequest) GetDisplayName() string
- func (m *CreateRequest) GetEmail() string
- func (m *CreateRequest) GetInitialUnits() int64
- func (m *CreateRequest) GetInviteEmails() []string
- func (m *CreateRequest) GetName() string
- func (m *CreateRequest) GetPassword() string
- func (m *CreateRequest) GetPaymentMethodNonce() string
- func (m *CreateRequest) GetSubscription() string
- func (m *CreateRequest) GetUserName() string
- func (m *CreateRequest) IsRequest()
- func (*CreateRequest) ProtoMessage()
- func (m *CreateRequest) Reset()
- func (m *CreateRequest) String() string
- func (m *CreateRequest) Valid() (*gojsonschema.Result, error)
- type GetRequest
- type GetResponse
- type IsAvailableRequest
- func (*IsAvailableRequest) Descriptor() ([]byte, []int)
- func (m *IsAvailableRequest) GetName() string
- func (m *IsAvailableRequest) IsRequest()
- func (*IsAvailableRequest) ProtoMessage()
- func (m *IsAvailableRequest) Reset()
- func (m *IsAvailableRequest) String() string
- func (m *IsAvailableRequest) Valid() (*gojsonschema.Result, error)
- type TeamsClient
- type TeamsServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExportTeamsCorsPatterns ¶
ExportTeamsCorsPatterns returns an array of grpc gatway mux patterns for Teams service to enable CORS.
func RegisterTeamsHandler ¶
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) GetCompany ¶
func (*Address) GetCountryCodeNumeric ¶
func (*Address) GetExtendedAddress ¶
func (*Address) GetFirstName ¶
func (*Address) GetLastName ¶
func (*Address) GetLocality ¶
func (*Address) GetPostalCode ¶
func (*Address) GetStreetAddress ¶
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
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 ¶
func (m *IsAvailableRequest) Valid() (*gojsonschema.Result, error)
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) }