rpx

package
v1.83.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DashFlash_Type_name = map[int32]string{
		0: "Undefined",
		1: "Success",
		2: "Warn",
		3: "Error",
	}
	DashFlash_Type_value = map[string]int32{
		"Undefined": 0,
		"Success":   1,
		"Warn":      2,
		"Error":     3,
	}
)

Enum value maps for DashFlash_Type.

View Source
var File_example_proto protoreflect.FileDescriptor

Functions

func RegisterDashAPICredsServer

func RegisterDashAPICredsServer(s grpc.ServiceRegistrar, srv DashAPICredsServer)

func RegisterDashStateServer

func RegisterDashStateServer(s grpc.ServiceRegistrar, srv DashStateServer)

Types

type DashAPICredsClient

type DashAPICredsClient interface {
	Create(ctx context.Context, in *DashAPICredsCreateReq, opts ...grpc.CallOption) (*DashCred, error)
	Update(ctx context.Context, in *DashAPICredsUpdateReq, opts ...grpc.CallOption) (*DashCred, error)
	Delete(ctx context.Context, in *DashAPICredsDeleteReq, opts ...grpc.CallOption) (*DashCred, error)
}

DashAPICredsClient is the client API for DashAPICreds 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.

type DashAPICredsCreateReq

type DashAPICredsCreateReq struct {
	Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	Metadata    string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

func (*DashAPICredsCreateReq) Descriptor deprecated

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

Deprecated: Use DashAPICredsCreateReq.ProtoReflect.Descriptor instead.

func (*DashAPICredsCreateReq) GetDescription

func (x *DashAPICredsCreateReq) GetDescription() string

func (*DashAPICredsCreateReq) GetMetadata

func (x *DashAPICredsCreateReq) GetMetadata() string

func (*DashAPICredsCreateReq) ProtoMessage

func (*DashAPICredsCreateReq) ProtoMessage()

func (*DashAPICredsCreateReq) ProtoReflect

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

func (*DashAPICredsCreateReq) Reset

func (x *DashAPICredsCreateReq) Reset()

func (*DashAPICredsCreateReq) String

func (x *DashAPICredsCreateReq) String() string

type DashAPICredsDeleteReq

type DashAPICredsDeleteReq struct {
	CredSid string `protobuf:"bytes,1,opt,name=cred_sid,json=credSid,proto3" json:"cred_sid,omitempty"`
	Id      string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DashAPICredsDeleteReq) Descriptor deprecated

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

Deprecated: Use DashAPICredsDeleteReq.ProtoReflect.Descriptor instead.

func (*DashAPICredsDeleteReq) GetCredSid

func (x *DashAPICredsDeleteReq) GetCredSid() string

func (*DashAPICredsDeleteReq) GetId

func (x *DashAPICredsDeleteReq) GetId() string

func (*DashAPICredsDeleteReq) ProtoMessage

func (*DashAPICredsDeleteReq) ProtoMessage()

func (*DashAPICredsDeleteReq) ProtoReflect

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

func (*DashAPICredsDeleteReq) Reset

func (x *DashAPICredsDeleteReq) Reset()

func (*DashAPICredsDeleteReq) String

func (x *DashAPICredsDeleteReq) String() string

type DashAPICredsServer

type DashAPICredsServer interface {
	Create(context.Context, *DashAPICredsCreateReq) (*DashCred, error)
	Update(context.Context, *DashAPICredsUpdateReq) (*DashCred, error)
	Delete(context.Context, *DashAPICredsDeleteReq) (*DashCred, error)
}

DashAPICredsServer is the server API for DashAPICreds service. All implementations should embed UnimplementedDashAPICredsServer for forward compatibility

type DashAPICredsUpdateReq

type DashAPICredsUpdateReq struct {
	CredSid     string `protobuf:"bytes,1,opt,name=cred_sid,json=credSid,proto3" json:"cred_sid,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Metadata    string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
	Id          string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DashAPICredsUpdateReq) Descriptor deprecated

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

Deprecated: Use DashAPICredsUpdateReq.ProtoReflect.Descriptor instead.

func (*DashAPICredsUpdateReq) GetCredSid

func (x *DashAPICredsUpdateReq) GetCredSid() string

func (*DashAPICredsUpdateReq) GetDescription

func (x *DashAPICredsUpdateReq) GetDescription() string

func (*DashAPICredsUpdateReq) GetId

func (x *DashAPICredsUpdateReq) GetId() string

func (*DashAPICredsUpdateReq) GetMetadata

func (x *DashAPICredsUpdateReq) GetMetadata() string

func (*DashAPICredsUpdateReq) ProtoMessage

func (*DashAPICredsUpdateReq) ProtoMessage()

func (*DashAPICredsUpdateReq) ProtoReflect

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

func (*DashAPICredsUpdateReq) Reset

func (x *DashAPICredsUpdateReq) Reset()

func (*DashAPICredsUpdateReq) String

func (x *DashAPICredsUpdateReq) String() string

type DashCred

type DashCred struct {
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Metadata    string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
	Token       string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"`
	Id          string `protobuf:"bytes,7,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DashCred) Descriptor deprecated

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

Deprecated: Use DashCred.ProtoReflect.Descriptor instead.

func (*DashCred) GetDescription

func (x *DashCred) GetDescription() string

func (*DashCred) GetId

func (x *DashCred) GetId() string

func (*DashCred) GetMetadata

func (x *DashCred) GetMetadata() string

func (*DashCred) GetToken

func (x *DashCred) GetToken() string

func (*DashCred) ProtoMessage

func (*DashCred) ProtoMessage()

func (*DashCred) ProtoReflect

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

func (*DashCred) Reset

func (x *DashCred) Reset()

func (*DashCred) String

func (x *DashCred) String() string

type DashFlash

type DashFlash struct {
	Msg  string         `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
	Type DashFlash_Type `protobuf:"varint,2,opt,name=type,proto3,enum=rpx.DashFlash_Type" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*DashFlash) Descriptor deprecated

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

Deprecated: Use DashFlash.ProtoReflect.Descriptor instead.

func (*DashFlash) GetMsg

func (x *DashFlash) GetMsg() string

func (*DashFlash) GetType

func (x *DashFlash) GetType() DashFlash_Type

func (*DashFlash) ProtoMessage

func (*DashFlash) ProtoMessage()

func (*DashFlash) ProtoReflect

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

func (*DashFlash) Reset

func (x *DashFlash) Reset()

func (*DashFlash) String

func (x *DashFlash) String() string

type DashFlash_Type

type DashFlash_Type int32
const (
	DashFlash_Undefined DashFlash_Type = 0
	DashFlash_Success   DashFlash_Type = 1
	DashFlash_Warn      DashFlash_Type = 2
	DashFlash_Error     DashFlash_Type = 3
)

func (DashFlash_Type) Descriptor

func (DashFlash_Type) Enum

func (x DashFlash_Type) Enum() *DashFlash_Type

func (DashFlash_Type) EnumDescriptor deprecated

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

Deprecated: Use DashFlash_Type.Descriptor instead.

func (DashFlash_Type) Number

func (DashFlash_Type) String

func (x DashFlash_Type) String() string

func (DashFlash_Type) Type

type DashStateClient

type DashStateClient interface {
	UserSettings(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*DashUserSettingsState, error)
	ActiveUserSettingsStream(ctx context.Context, in *Empty, opts ...grpc.CallOption) (DashState_ActiveUserSettingsStreamClient, error)
}

DashStateClient is the client API for DashState 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 NewDashStateClient

func NewDashStateClient(cc grpc.ClientConnInterface) DashStateClient

type DashStateServer

type DashStateServer interface {
	UserSettings(context.Context, *Empty) (*DashUserSettingsState, error)
	ActiveUserSettingsStream(*Empty, DashState_ActiveUserSettingsStreamServer) error
}

DashStateServer is the server API for DashState service. All implementations should embed UnimplementedDashStateServer for forward compatibility

type DashState_ActiveUserSettingsStreamClient

type DashState_ActiveUserSettingsStreamClient interface {
	Recv() (*DashUserSettingsState, error)
	grpc.ClientStream
}

type DashState_ActiveUserSettingsStreamServer

type DashState_ActiveUserSettingsStreamServer interface {
	Send(*DashUserSettingsState) error
	grpc.ServerStream
}

type DashUserSettingsState

type DashUserSettingsState struct {
	Email   string                      `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	Urls    *DashUserSettingsState_URLs `protobuf:"bytes,6,opt,name=urls,proto3" json:"urls,omitempty"`
	Flashes []*DashFlash                `protobuf:"bytes,7,rep,name=flashes,proto3" json:"flashes,omitempty"`
	// contains filtered or unexported fields
}

func (*DashUserSettingsState) Descriptor deprecated

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

Deprecated: Use DashUserSettingsState.ProtoReflect.Descriptor instead.

func (*DashUserSettingsState) GetEmail

func (x *DashUserSettingsState) GetEmail() string

func (*DashUserSettingsState) GetFlashes

func (x *DashUserSettingsState) GetFlashes() []*DashFlash

func (*DashUserSettingsState) GetUrls

func (*DashUserSettingsState) ProtoMessage

func (*DashUserSettingsState) ProtoMessage()

func (*DashUserSettingsState) ProtoReflect

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

func (*DashUserSettingsState) Reset

func (x *DashUserSettingsState) Reset()

func (*DashUserSettingsState) String

func (x *DashUserSettingsState) String() string

type DashUserSettingsState_URLs

type DashUserSettingsState_URLs struct {
	ConnectGoogle string `protobuf:"bytes,1,opt,name=connect_google,json=connectGoogle,proto3" json:"connect_google,omitempty"`
	ConnectGithub string `protobuf:"bytes,2,opt,name=connect_github,json=connectGithub,proto3" json:"connect_github,omitempty"`
	// contains filtered or unexported fields
}

func (*DashUserSettingsState_URLs) Descriptor deprecated

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

Deprecated: Use DashUserSettingsState_URLs.ProtoReflect.Descriptor instead.

func (*DashUserSettingsState_URLs) GetConnectGithub

func (x *DashUserSettingsState_URLs) GetConnectGithub() string

func (*DashUserSettingsState_URLs) GetConnectGoogle

func (x *DashUserSettingsState_URLs) GetConnectGoogle() string

func (*DashUserSettingsState_URLs) ProtoMessage

func (*DashUserSettingsState_URLs) ProtoMessage()

func (*DashUserSettingsState_URLs) ProtoReflect

func (*DashUserSettingsState_URLs) Reset

func (x *DashUserSettingsState_URLs) Reset()

func (*DashUserSettingsState_URLs) String

func (x *DashUserSettingsState_URLs) String() string

type Empty

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

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type UnimplementedDashAPICredsServer

type UnimplementedDashAPICredsServer struct {
}

UnimplementedDashAPICredsServer should be embedded to have forward compatible implementations.

func (UnimplementedDashAPICredsServer) Create

func (UnimplementedDashAPICredsServer) Delete

func (UnimplementedDashAPICredsServer) Update

type UnimplementedDashStateServer

type UnimplementedDashStateServer struct {
}

UnimplementedDashStateServer should be embedded to have forward compatible implementations.

func (UnimplementedDashStateServer) ActiveUserSettingsStream

func (UnimplementedDashStateServer) UserSettings

type UnsafeDashAPICredsServer

type UnsafeDashAPICredsServer interface {
	// contains filtered or unexported methods
}

UnsafeDashAPICredsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DashAPICredsServer will result in compilation errors.

type UnsafeDashStateServer

type UnsafeDashStateServer interface {
	// contains filtered or unexported methods
}

UnsafeDashStateServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DashStateServer will result in compilation errors.

Jump to

Keyboard shortcuts

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