Documentation
¶
Index ¶
- Variables
- func RegisterServerServer(s grpc.ServiceRegistrar, srv ServerServer)
- type AuthClient
- type AuthConfig
- func (*AuthConfig) Descriptor() ([]byte, []int)deprecated
- func (x *AuthConfig) GetClientId() string
- func (x *AuthConfig) GetClientSecret() string
- func (x *AuthConfig) GetIssuer() string
- func (*AuthConfig) ProtoMessage()
- func (x *AuthConfig) ProtoReflect() protoreflect.Message
- func (x *AuthConfig) Reset()
- func (x *AuthConfig) String() string
- type ConnectRequest
- func (*ConnectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ConnectRequest) GetBaseUrl() string
- func (x *ConnectRequest) GetId() string
- func (x *ConnectRequest) GetProduction() bool
- func (x *ConnectRequest) GetTags() map[string]string
- func (*ConnectRequest) ProtoMessage()
- func (x *ConnectRequest) ProtoReflect() protoreflect.Message
- func (x *ConnectRequest) Reset()
- func (x *ConnectRequest) String() string
- type ConnectResponse
- func (*ConnectResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ConnectResponse) GetConnected() *Connected
- func (x *ConnectResponse) GetDeletedStack() *DeletedStack
- func (x *ConnectResponse) GetDisabledStack() *DisabledStack
- func (x *ConnectResponse) GetEnabledStack() *EnabledStack
- func (x *ConnectResponse) GetExistingStack() *Stack
- func (m *ConnectResponse) GetMessage() isConnectResponse_Message
- func (x *ConnectResponse) GetPing() *Ping
- func (x *ConnectResponse) GetUpdateUsageReport() *UpdateUsageReport
- func (*ConnectResponse) ProtoMessage()
- func (x *ConnectResponse) ProtoReflect() protoreflect.Message
- func (x *ConnectResponse) Reset()
- func (x *ConnectResponse) String() string
- type ConnectResponse_Connected
- type ConnectResponse_DeletedStack
- type ConnectResponse_DisabledStack
- type ConnectResponse_EnabledStack
- type ConnectResponse_ExistingStack
- type ConnectResponse_Ping
- type ConnectResponse_UpdateUsageReport
- type Connected
- type DeletedStack
- type DisabledStack
- type EnabledStack
- type Ping
- type ServerClient
- type ServerServer
- type Server_ConnectClient
- type Server_ConnectServer
- type Stack
- func (*Stack) Descriptor() ([]byte, []int)deprecated
- func (x *Stack) GetAuthConfig() *AuthConfig
- func (x *Stack) GetClusterName() string
- func (x *Stack) GetSeed() string
- func (x *Stack) GetStargateConfig() *StargateConfig
- func (x *Stack) GetStaticClients() []*AuthClient
- func (*Stack) ProtoMessage()
- func (x *Stack) ProtoReflect() protoreflect.Message
- func (x *Stack) Reset()
- func (x *Stack) String() string
- type StargateConfig
- func (*StargateConfig) Descriptor() ([]byte, []int)deprecated
- func (x *StargateConfig) GetEnabled() bool
- func (x *StargateConfig) GetUrl() string
- func (*StargateConfig) ProtoMessage()
- func (x *StargateConfig) ProtoReflect() protoreflect.Message
- func (x *StargateConfig) Reset()
- func (x *StargateConfig) String() string
- type UnimplementedServerServer
- type UnsafeServerServer
- type UpdateUsageReport
- func (*UpdateUsageReport) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUsageReport) GetClusterName() string
- func (x *UpdateUsageReport) GetStripeKey() string
- func (x *UpdateUsageReport) GetStripeSubscriptionId() string
- func (*UpdateUsageReport) ProtoMessage()
- func (x *UpdateUsageReport) ProtoReflect() protoreflect.Message
- func (x *UpdateUsageReport) Reset()
- func (x *UpdateUsageReport) String() string
Constants ¶
This section is empty.
Variables ¶
var File_server_proto protoreflect.FileDescriptor
var Server_ServiceDesc = grpc.ServiceDesc{ ServiceName: "server.Server", HandlerType: (*ServerServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Connect", Handler: _Server_Connect_Handler, ServerStreams: true, }, }, Metadata: "server.proto", }
Server_ServiceDesc is the grpc.ServiceDesc for Server service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServerServer ¶
func RegisterServerServer(s grpc.ServiceRegistrar, srv ServerServer)
Types ¶
type AuthClient ¶
type AuthClient struct { Public bool `protobuf:"varint,1,opt,name=public,proto3" json:"public,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*AuthClient) Descriptor
deprecated
func (*AuthClient) Descriptor() ([]byte, []int)
Deprecated: Use AuthClient.ProtoReflect.Descriptor instead.
func (*AuthClient) GetId ¶
func (x *AuthClient) GetId() string
func (*AuthClient) GetPublic ¶
func (x *AuthClient) GetPublic() bool
func (*AuthClient) ProtoMessage ¶
func (*AuthClient) ProtoMessage()
func (*AuthClient) ProtoReflect ¶
func (x *AuthClient) ProtoReflect() protoreflect.Message
func (*AuthClient) Reset ¶
func (x *AuthClient) Reset()
func (*AuthClient) String ¶
func (x *AuthClient) String() string
type AuthConfig ¶
type AuthConfig struct { ClientId string `protobuf:"bytes,1,opt,name=clientId,proto3" json:"clientId,omitempty"` ClientSecret string `protobuf:"bytes,2,opt,name=clientSecret,proto3" json:"clientSecret,omitempty"` Issuer string `protobuf:"bytes,3,opt,name=issuer,proto3" json:"issuer,omitempty"` // contains filtered or unexported fields }
func (*AuthConfig) Descriptor
deprecated
func (*AuthConfig) Descriptor() ([]byte, []int)
Deprecated: Use AuthConfig.ProtoReflect.Descriptor instead.
func (*AuthConfig) GetClientId ¶
func (x *AuthConfig) GetClientId() string
func (*AuthConfig) GetClientSecret ¶
func (x *AuthConfig) GetClientSecret() string
func (*AuthConfig) GetIssuer ¶
func (x *AuthConfig) GetIssuer() string
func (*AuthConfig) ProtoMessage ¶
func (*AuthConfig) ProtoMessage()
func (*AuthConfig) ProtoReflect ¶
func (x *AuthConfig) ProtoReflect() protoreflect.Message
func (*AuthConfig) Reset ¶
func (x *AuthConfig) Reset()
func (*AuthConfig) String ¶
func (x *AuthConfig) String() string
type ConnectRequest ¶
type ConnectRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Tags map[string]string `` /* 149-byte string literal not displayed */ BaseUrl string `protobuf:"bytes,3,opt,name=baseUrl,proto3" json:"baseUrl,omitempty"` Production bool `protobuf:"varint,4,opt,name=production,proto3" json:"production,omitempty"` // contains filtered or unexported fields }
func (*ConnectRequest) Descriptor
deprecated
func (*ConnectRequest) Descriptor() ([]byte, []int)
Deprecated: Use ConnectRequest.ProtoReflect.Descriptor instead.
func (*ConnectRequest) GetBaseUrl ¶
func (x *ConnectRequest) GetBaseUrl() string
func (*ConnectRequest) GetId ¶
func (x *ConnectRequest) GetId() string
func (*ConnectRequest) GetProduction ¶
func (x *ConnectRequest) GetProduction() bool
func (*ConnectRequest) GetTags ¶
func (x *ConnectRequest) GetTags() map[string]string
func (*ConnectRequest) ProtoMessage ¶
func (*ConnectRequest) ProtoMessage()
func (*ConnectRequest) ProtoReflect ¶
func (x *ConnectRequest) ProtoReflect() protoreflect.Message
func (*ConnectRequest) Reset ¶
func (x *ConnectRequest) Reset()
func (*ConnectRequest) String ¶
func (x *ConnectRequest) String() string
type ConnectResponse ¶
type ConnectResponse struct { // Types that are assignable to Message: // *ConnectResponse_Connected // *ConnectResponse_ExistingStack // *ConnectResponse_DeletedStack // *ConnectResponse_Ping // *ConnectResponse_UpdateUsageReport // *ConnectResponse_DisabledStack // *ConnectResponse_EnabledStack Message isConnectResponse_Message `protobuf_oneof:"message"` // contains filtered or unexported fields }
func (*ConnectResponse) Descriptor
deprecated
func (*ConnectResponse) Descriptor() ([]byte, []int)
Deprecated: Use ConnectResponse.ProtoReflect.Descriptor instead.
func (*ConnectResponse) GetConnected ¶
func (x *ConnectResponse) GetConnected() *Connected
func (*ConnectResponse) GetDeletedStack ¶
func (x *ConnectResponse) GetDeletedStack() *DeletedStack
func (*ConnectResponse) GetDisabledStack ¶ added in v0.3.0
func (x *ConnectResponse) GetDisabledStack() *DisabledStack
func (*ConnectResponse) GetEnabledStack ¶ added in v0.3.0
func (x *ConnectResponse) GetEnabledStack() *EnabledStack
func (*ConnectResponse) GetExistingStack ¶ added in v0.2.0
func (x *ConnectResponse) GetExistingStack() *Stack
func (*ConnectResponse) GetMessage ¶
func (m *ConnectResponse) GetMessage() isConnectResponse_Message
func (*ConnectResponse) GetPing ¶
func (x *ConnectResponse) GetPing() *Ping
func (*ConnectResponse) GetUpdateUsageReport ¶
func (x *ConnectResponse) GetUpdateUsageReport() *UpdateUsageReport
func (*ConnectResponse) ProtoMessage ¶
func (*ConnectResponse) ProtoMessage()
func (*ConnectResponse) ProtoReflect ¶
func (x *ConnectResponse) ProtoReflect() protoreflect.Message
func (*ConnectResponse) Reset ¶
func (x *ConnectResponse) Reset()
func (*ConnectResponse) String ¶
func (x *ConnectResponse) String() string
type ConnectResponse_Connected ¶
type ConnectResponse_Connected struct {
Connected *Connected `protobuf:"bytes,1,opt,name=connected,proto3,oneof"`
}
type ConnectResponse_DeletedStack ¶
type ConnectResponse_DeletedStack struct {
DeletedStack *DeletedStack `protobuf:"bytes,3,opt,name=deletedStack,proto3,oneof"`
}
type ConnectResponse_DisabledStack ¶ added in v0.3.0
type ConnectResponse_DisabledStack struct {
DisabledStack *DisabledStack `protobuf:"bytes,6,opt,name=disabledStack,proto3,oneof"`
}
type ConnectResponse_EnabledStack ¶ added in v0.3.0
type ConnectResponse_EnabledStack struct {
EnabledStack *EnabledStack `protobuf:"bytes,7,opt,name=enabledStack,proto3,oneof"`
}
type ConnectResponse_ExistingStack ¶ added in v0.2.0
type ConnectResponse_ExistingStack struct {
ExistingStack *Stack `protobuf:"bytes,2,opt,name=existingStack,proto3,oneof"`
}
type ConnectResponse_Ping ¶
type ConnectResponse_Ping struct {
Ping *Ping `protobuf:"bytes,4,opt,name=ping,proto3,oneof"`
}
type ConnectResponse_UpdateUsageReport ¶
type ConnectResponse_UpdateUsageReport struct {
UpdateUsageReport *UpdateUsageReport `protobuf:"bytes,5,opt,name=updateUsageReport,proto3,oneof"`
}
type Connected ¶
type Connected struct {
// contains filtered or unexported fields
}
func (*Connected) Descriptor
deprecated
func (*Connected) ProtoMessage ¶
func (*Connected) ProtoMessage()
func (*Connected) ProtoReflect ¶
func (x *Connected) ProtoReflect() protoreflect.Message
type DeletedStack ¶
type DeletedStack struct { ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` // contains filtered or unexported fields }
func (*DeletedStack) Descriptor
deprecated
func (*DeletedStack) Descriptor() ([]byte, []int)
Deprecated: Use DeletedStack.ProtoReflect.Descriptor instead.
func (*DeletedStack) GetClusterName ¶
func (x *DeletedStack) GetClusterName() string
func (*DeletedStack) ProtoMessage ¶
func (*DeletedStack) ProtoMessage()
func (*DeletedStack) ProtoReflect ¶
func (x *DeletedStack) ProtoReflect() protoreflect.Message
func (*DeletedStack) Reset ¶
func (x *DeletedStack) Reset()
func (*DeletedStack) String ¶
func (x *DeletedStack) String() string
type DisabledStack ¶ added in v0.3.0
type DisabledStack struct { ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` // contains filtered or unexported fields }
func (*DisabledStack) Descriptor
deprecated
added in
v0.3.0
func (*DisabledStack) Descriptor() ([]byte, []int)
Deprecated: Use DisabledStack.ProtoReflect.Descriptor instead.
func (*DisabledStack) GetClusterName ¶ added in v0.3.0
func (x *DisabledStack) GetClusterName() string
func (*DisabledStack) ProtoMessage ¶ added in v0.3.0
func (*DisabledStack) ProtoMessage()
func (*DisabledStack) ProtoReflect ¶ added in v0.3.0
func (x *DisabledStack) ProtoReflect() protoreflect.Message
func (*DisabledStack) Reset ¶ added in v0.3.0
func (x *DisabledStack) Reset()
func (*DisabledStack) String ¶ added in v0.3.0
func (x *DisabledStack) String() string
type EnabledStack ¶ added in v0.3.0
type EnabledStack struct { ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` // contains filtered or unexported fields }
func (*EnabledStack) Descriptor
deprecated
added in
v0.3.0
func (*EnabledStack) Descriptor() ([]byte, []int)
Deprecated: Use EnabledStack.ProtoReflect.Descriptor instead.
func (*EnabledStack) GetClusterName ¶ added in v0.3.0
func (x *EnabledStack) GetClusterName() string
func (*EnabledStack) ProtoMessage ¶ added in v0.3.0
func (*EnabledStack) ProtoMessage()
func (*EnabledStack) ProtoReflect ¶ added in v0.3.0
func (x *EnabledStack) ProtoReflect() protoreflect.Message
func (*EnabledStack) Reset ¶ added in v0.3.0
func (x *EnabledStack) Reset()
func (*EnabledStack) String ¶ added in v0.3.0
func (x *EnabledStack) String() string
type Ping ¶
type Ping struct {
// contains filtered or unexported fields
}
func (*Ping) Descriptor
deprecated
func (*Ping) ProtoMessage ¶
func (*Ping) ProtoMessage()
func (*Ping) ProtoReflect ¶
func (x *Ping) ProtoReflect() protoreflect.Message
type ServerClient ¶
type ServerClient interface {
Connect(ctx context.Context, in *ConnectRequest, opts ...grpc.CallOption) (Server_ConnectClient, error)
}
ServerClient is the client API for Server service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewServerClient ¶
func NewServerClient(cc grpc.ClientConnInterface) ServerClient
type ServerServer ¶
type ServerServer interface { Connect(*ConnectRequest, Server_ConnectServer) error // contains filtered or unexported methods }
ServerServer is the server API for Server service. All implementations must embed UnimplementedServerServer for forward compatibility
type Server_ConnectClient ¶
type Server_ConnectClient interface { Recv() (*ConnectResponse, error) grpc.ClientStream }
type Server_ConnectServer ¶
type Server_ConnectServer interface { Send(*ConnectResponse) error grpc.ServerStream }
type Stack ¶ added in v0.2.0
type Stack struct { ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` Seed string `protobuf:"bytes,2,opt,name=seed,proto3" json:"seed,omitempty"` AuthConfig *AuthConfig `protobuf:"bytes,3,opt,name=authConfig,proto3" json:"authConfig,omitempty"` StaticClients []*AuthClient `protobuf:"bytes,4,rep,name=staticClients,proto3" json:"staticClients,omitempty"` StargateConfig *StargateConfig `protobuf:"bytes,5,opt,name=stargateConfig,proto3" json:"stargateConfig,omitempty"` // contains filtered or unexported fields }
func (*Stack) Descriptor
deprecated
added in
v0.2.0
func (*Stack) GetAuthConfig ¶ added in v0.2.0
func (x *Stack) GetAuthConfig() *AuthConfig
func (*Stack) GetClusterName ¶ added in v0.2.0
func (*Stack) GetStargateConfig ¶ added in v0.2.0
func (x *Stack) GetStargateConfig() *StargateConfig
func (*Stack) GetStaticClients ¶ added in v0.2.0
func (x *Stack) GetStaticClients() []*AuthClient
func (*Stack) ProtoMessage ¶ added in v0.2.0
func (*Stack) ProtoMessage()
func (*Stack) ProtoReflect ¶ added in v0.2.0
func (x *Stack) ProtoReflect() protoreflect.Message
type StargateConfig ¶ added in v0.2.0
type StargateConfig struct { Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*StargateConfig) Descriptor
deprecated
added in
v0.2.0
func (*StargateConfig) Descriptor() ([]byte, []int)
Deprecated: Use StargateConfig.ProtoReflect.Descriptor instead.
func (*StargateConfig) GetEnabled ¶ added in v0.2.0
func (x *StargateConfig) GetEnabled() bool
func (*StargateConfig) GetUrl ¶ added in v0.2.0
func (x *StargateConfig) GetUrl() string
func (*StargateConfig) ProtoMessage ¶ added in v0.2.0
func (*StargateConfig) ProtoMessage()
func (*StargateConfig) ProtoReflect ¶ added in v0.2.0
func (x *StargateConfig) ProtoReflect() protoreflect.Message
func (*StargateConfig) Reset ¶ added in v0.2.0
func (x *StargateConfig) Reset()
func (*StargateConfig) String ¶ added in v0.2.0
func (x *StargateConfig) String() string
type UnimplementedServerServer ¶
type UnimplementedServerServer struct { }
UnimplementedServerServer must be embedded to have forward compatible implementations.
func (UnimplementedServerServer) Connect ¶
func (UnimplementedServerServer) Connect(*ConnectRequest, Server_ConnectServer) error
type UnsafeServerServer ¶
type UnsafeServerServer interface {
// contains filtered or unexported methods
}
UnsafeServerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServerServer will result in compilation errors.
type UpdateUsageReport ¶
type UpdateUsageReport struct { ClusterName string `protobuf:"bytes,1,opt,name=clusterName,proto3" json:"clusterName,omitempty"` StripeKey string `protobuf:"bytes,2,opt,name=stripeKey,proto3" json:"stripeKey,omitempty"` StripeSubscriptionId string `protobuf:"bytes,3,opt,name=stripeSubscriptionId,proto3" json:"stripeSubscriptionId,omitempty"` // contains filtered or unexported fields }
func (*UpdateUsageReport) Descriptor
deprecated
func (*UpdateUsageReport) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUsageReport.ProtoReflect.Descriptor instead.
func (*UpdateUsageReport) GetClusterName ¶
func (x *UpdateUsageReport) GetClusterName() string
func (*UpdateUsageReport) GetStripeKey ¶
func (x *UpdateUsageReport) GetStripeKey() string
func (*UpdateUsageReport) GetStripeSubscriptionId ¶
func (x *UpdateUsageReport) GetStripeSubscriptionId() string
func (*UpdateUsageReport) ProtoMessage ¶
func (*UpdateUsageReport) ProtoMessage()
func (*UpdateUsageReport) ProtoReflect ¶
func (x *UpdateUsageReport) ProtoReflect() protoreflect.Message
func (*UpdateUsageReport) Reset ¶
func (x *UpdateUsageReport) Reset()
func (*UpdateUsageReport) String ¶
func (x *UpdateUsageReport) String() string