generated

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

README

Generated GRPC code

Protoc does not allow to generate client separately from server, so put in a shared space.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StackStatus_name = map[int32]string{
		0: "Progressing",
		1: "Ready",
		2: "Deleted",
		3: "Disabled",
	}
	StackStatus_value = map[string]int32{
		"Progressing": 0,
		"Ready":       1,
		"Deleted":     2,
		"Disabled":    3,
	}
)

Enum value maps for StackStatus.

View Source
var File_server_proto protoreflect.FileDescriptor
View Source
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,
		},
		{
			StreamName:    "Join",
			Handler:       _Server_Join_Handler,
			ServerStreams: true,
			ClientStreams: 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 Connected

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

func (*Connected) Descriptor deprecated

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

Deprecated: Use Connected.ProtoReflect.Descriptor instead.

func (*Connected) ProtoMessage

func (*Connected) ProtoMessage()

func (*Connected) ProtoReflect

func (x *Connected) ProtoReflect() protoreflect.Message

func (*Connected) Reset

func (x *Connected) Reset()

func (*Connected) String

func (x *Connected) String() string

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 Message added in v0.4.1

type Message struct {

	// Types that are assignable to Message:
	//
	//	*Message_StatusChanged
	//	*Message_Pong
	Message isMessage_Message `protobuf_oneof:"message"`
	// contains filtered or unexported fields
}

func (*Message) Descriptor deprecated added in v0.4.1

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetMessage added in v0.4.1

func (m *Message) GetMessage() isMessage_Message

func (*Message) GetPong added in v0.4.1

func (x *Message) GetPong() *Pong

func (*Message) GetStatusChanged added in v0.4.1

func (x *Message) GetStatusChanged() *StatusChanged

func (*Message) ProtoMessage added in v0.4.1

func (*Message) ProtoMessage()

func (*Message) ProtoReflect added in v0.4.1

func (x *Message) ProtoReflect() protoreflect.Message

func (*Message) Reset added in v0.4.1

func (x *Message) Reset()

func (*Message) String added in v0.4.1

func (x *Message) String() string

type Message_Pong added in v0.4.1

type Message_Pong struct {
	Pong *Pong `protobuf:"bytes,2,opt,name=pong,proto3,oneof"`
}

type Message_StatusChanged added in v0.4.1

type Message_StatusChanged struct {
	StatusChanged *StatusChanged `protobuf:"bytes,1,opt,name=statusChanged,proto3,oneof"`
}

type Order added in v0.4.0

type Order struct {

	// Types that are assignable to Message:
	//
	//	*Order_Connected
	//	*Order_ExistingStack
	//	*Order_DeletedStack
	//	*Order_Ping
	//	*Order_UpdateUsageReport
	//	*Order_DisabledStack
	//	*Order_EnabledStack
	Message isOrder_Message `protobuf_oneof:"message"`
	// contains filtered or unexported fields
}

func (*Order) Descriptor deprecated added in v0.4.0

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

Deprecated: Use Order.ProtoReflect.Descriptor instead.

func (*Order) GetConnected added in v0.4.0

func (x *Order) GetConnected() *Connected

func (*Order) GetDeletedStack added in v0.4.0

func (x *Order) GetDeletedStack() *DeletedStack

func (*Order) GetDisabledStack added in v0.4.0

func (x *Order) GetDisabledStack() *DisabledStack

func (*Order) GetEnabledStack added in v0.4.0

func (x *Order) GetEnabledStack() *EnabledStack

func (*Order) GetExistingStack added in v0.4.0

func (x *Order) GetExistingStack() *Stack

func (*Order) GetMessage added in v0.4.0

func (m *Order) GetMessage() isOrder_Message

func (*Order) GetPing added in v0.4.0

func (x *Order) GetPing() *Ping

func (*Order) GetUpdateUsageReport added in v0.4.0

func (x *Order) GetUpdateUsageReport() *UpdateUsageReport

func (*Order) ProtoMessage added in v0.4.0

func (*Order) ProtoMessage()

func (*Order) ProtoReflect added in v0.4.0

func (x *Order) ProtoReflect() protoreflect.Message

func (*Order) Reset added in v0.4.0

func (x *Order) Reset()

func (*Order) String added in v0.4.0

func (x *Order) String() string

type Order_Connected added in v0.4.0

type Order_Connected struct {
	Connected *Connected `protobuf:"bytes,1,opt,name=connected,proto3,oneof"`
}

type Order_DeletedStack added in v0.4.0

type Order_DeletedStack struct {
	DeletedStack *DeletedStack `protobuf:"bytes,3,opt,name=deletedStack,proto3,oneof"`
}

type Order_DisabledStack added in v0.4.0

type Order_DisabledStack struct {
	DisabledStack *DisabledStack `protobuf:"bytes,6,opt,name=disabledStack,proto3,oneof"`
}

type Order_EnabledStack added in v0.4.0

type Order_EnabledStack struct {
	EnabledStack *EnabledStack `protobuf:"bytes,7,opt,name=enabledStack,proto3,oneof"`
}

type Order_ExistingStack added in v0.4.0

type Order_ExistingStack struct {
	ExistingStack *Stack `protobuf:"bytes,2,opt,name=existingStack,proto3,oneof"`
}

type Order_Ping added in v0.4.0

type Order_Ping struct {
	Ping *Ping `protobuf:"bytes,4,opt,name=ping,proto3,oneof"`
}

type Order_UpdateUsageReport added in v0.4.0

type Order_UpdateUsageReport struct {
	UpdateUsageReport *UpdateUsageReport `protobuf:"bytes,5,opt,name=updateUsageReport,proto3,oneof"`
}

type Ping

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

func (*Ping) Descriptor deprecated

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

Deprecated: Use Ping.ProtoReflect.Descriptor instead.

func (*Ping) ProtoMessage

func (*Ping) ProtoMessage()

func (*Ping) ProtoReflect

func (x *Ping) ProtoReflect() protoreflect.Message

func (*Ping) Reset

func (x *Ping) Reset()

func (*Ping) String

func (x *Ping) String() string

type Pong added in v0.4.1

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

func (*Pong) Descriptor deprecated added in v0.4.1

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

Deprecated: Use Pong.ProtoReflect.Descriptor instead.

func (*Pong) ProtoMessage added in v0.4.1

func (*Pong) ProtoMessage()

func (*Pong) ProtoReflect added in v0.4.1

func (x *Pong) ProtoReflect() protoreflect.Message

func (*Pong) Reset added in v0.4.1

func (x *Pong) Reset()

func (*Pong) String added in v0.4.1

func (x *Pong) String() string

type ServerClient

type ServerClient interface {
	Connect(ctx context.Context, in *ConnectRequest, opts ...grpc.CallOption) (Server_ConnectClient, error)
	Join(ctx context.Context, opts ...grpc.CallOption) (Server_JoinClient, 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
	Join(Server_JoinServer) 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() (*Order, error)
	grpc.ClientStream
}

type Server_ConnectServer

type Server_ConnectServer interface {
	Send(*Order) error
	grpc.ServerStream
}

type Server_JoinClient added in v0.4.0

type Server_JoinClient interface {
	Send(*Message) error
	Recv() (*Order, error)
	grpc.ClientStream
}

type Server_JoinServer added in v0.4.0

type Server_JoinServer interface {
	Send(*Order) error
	Recv() (*Message, 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"`
	Disabled       bool            `protobuf:"varint,6,opt,name=disabled,proto3" json:"disabled,omitempty"`
	// contains filtered or unexported fields
}

func (*Stack) Descriptor deprecated added in v0.2.0

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

Deprecated: Use Stack.ProtoReflect.Descriptor instead.

func (*Stack) GetAuthConfig added in v0.2.0

func (x *Stack) GetAuthConfig() *AuthConfig

func (*Stack) GetClusterName added in v0.2.0

func (x *Stack) GetClusterName() string

func (*Stack) GetDisabled added in v0.6.0

func (x *Stack) GetDisabled() bool

func (*Stack) GetSeed added in v0.2.0

func (x *Stack) GetSeed() string

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

func (*Stack) Reset added in v0.2.0

func (x *Stack) Reset()

func (*Stack) String added in v0.2.0

func (x *Stack) String() string

type StackStatus added in v0.4.0

type StackStatus int32
const (
	StackStatus_Progressing StackStatus = 0
	StackStatus_Ready       StackStatus = 1
	StackStatus_Deleted     StackStatus = 2
	StackStatus_Disabled    StackStatus = 3
)

func (StackStatus) Descriptor added in v0.4.0

func (StackStatus) Enum added in v0.4.0

func (x StackStatus) Enum() *StackStatus

func (StackStatus) EnumDescriptor deprecated added in v0.4.0

func (StackStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use StackStatus.Descriptor instead.

func (StackStatus) Number added in v0.4.0

func (x StackStatus) Number() protoreflect.EnumNumber

func (StackStatus) String added in v0.4.0

func (x StackStatus) String() string

func (StackStatus) Type added in v0.4.0

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 StatusChanged added in v0.4.0

type StatusChanged struct {
	StackId string      `protobuf:"bytes,1,opt,name=stackId,proto3" json:"stackId,omitempty"`
	Status  StackStatus `protobuf:"varint,2,opt,name=status,proto3,enum=server.StackStatus" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*StatusChanged) Descriptor deprecated added in v0.4.0

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

Deprecated: Use StatusChanged.ProtoReflect.Descriptor instead.

func (*StatusChanged) GetStackId added in v0.4.0

func (x *StatusChanged) GetStackId() string

func (*StatusChanged) GetStatus added in v0.4.0

func (x *StatusChanged) GetStatus() StackStatus

func (*StatusChanged) ProtoMessage added in v0.4.0

func (*StatusChanged) ProtoMessage()

func (*StatusChanged) ProtoReflect added in v0.4.0

func (x *StatusChanged) ProtoReflect() protoreflect.Message

func (*StatusChanged) Reset added in v0.4.0

func (x *StatusChanged) Reset()

func (*StatusChanged) String added in v0.4.0

func (x *StatusChanged) String() string

type UnimplementedServerServer

type UnimplementedServerServer struct {
}

UnimplementedServerServer must be embedded to have forward compatible implementations.

func (UnimplementedServerServer) Connect

func (UnimplementedServerServer) Join added in v0.4.0

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

Jump to

Keyboard shortcuts

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