settingspb

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_settingspb_proto protoreflect.FileDescriptor

Functions

func NewSettingsServiceEndpoints

func NewSettingsServiceEndpoints() []*api.Endpoint

func RegisterSettingsServiceHandler

func RegisterSettingsServiceHandler(s server.Server, hdlr SettingsServiceHandler, opts ...server.HandlerOption) error

Types

type CreateRequest

type CreateRequest struct {
	Service     string   `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
	OwnerId     string   `protobuf:"bytes,2,opt,name=ownerId,proto3" json:"ownerId,omitempty"`
	Name        string   `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Content     []byte   `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
	RolesRead   []string `protobuf:"bytes,5,rep,name=rolesRead,proto3" json:"rolesRead,omitempty"`
	RolesUpdate []string `protobuf:"bytes,6,rep,name=rolesUpdate,proto3" json:"rolesUpdate,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRequest) Descriptor deprecated

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

Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.

func (*CreateRequest) GetContent

func (x *CreateRequest) GetContent() []byte

func (*CreateRequest) GetName

func (x *CreateRequest) GetName() string

func (*CreateRequest) GetOwnerId

func (x *CreateRequest) GetOwnerId() string

func (*CreateRequest) GetRolesRead

func (x *CreateRequest) GetRolesRead() []string

func (*CreateRequest) GetRolesUpdate

func (x *CreateRequest) GetRolesUpdate() []string

func (*CreateRequest) GetService

func (x *CreateRequest) GetService() string

func (*CreateRequest) ProtoMessage

func (*CreateRequest) ProtoMessage()

func (*CreateRequest) ProtoReflect

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

func (*CreateRequest) Reset

func (x *CreateRequest) Reset()

func (*CreateRequest) String

func (x *CreateRequest) String() string

type GetRequest

type GetRequest struct {
	Id      string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	OwnerId string `protobuf:"bytes,2,opt,name=ownerId,proto3" json:"ownerId,omitempty"`
	Service string `protobuf:"bytes,3,opt,name=service,proto3" json:"service,omitempty"`
	Name    string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRequest) Descriptor deprecated

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

Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.

func (*GetRequest) GetId

func (x *GetRequest) GetId() string

func (*GetRequest) GetName

func (x *GetRequest) GetName() string

func (*GetRequest) GetOwnerId

func (x *GetRequest) GetOwnerId() string

func (*GetRequest) GetService

func (x *GetRequest) GetService() string

func (*GetRequest) ProtoMessage

func (*GetRequest) ProtoMessage()

func (*GetRequest) ProtoReflect

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

func (*GetRequest) Reset

func (x *GetRequest) Reset()

func (*GetRequest) String

func (x *GetRequest) String() string

type ListRequest

type ListRequest struct {
	Id      string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	OwnerId string `protobuf:"bytes,2,opt,name=ownerId,proto3" json:"ownerId,omitempty"`
	Service string `protobuf:"bytes,3,opt,name=service,proto3" json:"service,omitempty"`
	Name    string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	Limit   uint64 `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty"`
	Offset  uint64 `protobuf:"varint,6,opt,name=offset,proto3" json:"offset,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRequest) Descriptor deprecated

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

Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.

func (*ListRequest) GetId

func (x *ListRequest) GetId() string

func (*ListRequest) GetLimit

func (x *ListRequest) GetLimit() uint64

func (*ListRequest) GetName

func (x *ListRequest) GetName() string

func (*ListRequest) GetOffset

func (x *ListRequest) GetOffset() uint64

func (*ListRequest) GetOwnerId

func (x *ListRequest) GetOwnerId() string

func (*ListRequest) GetService

func (x *ListRequest) GetService() string

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) ProtoReflect

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

func (*ListRequest) Reset

func (x *ListRequest) Reset()

func (*ListRequest) String

func (x *ListRequest) String() string

type Setting

type Setting struct {
	Id      string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Service string `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"`
	OwnerId string `protobuf:"bytes,3,opt,name=ownerId,proto3" json:"ownerId,omitempty"`
	Name    string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	Content []byte `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*Setting) Descriptor deprecated

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

Deprecated: Use Setting.ProtoReflect.Descriptor instead.

func (*Setting) GetContent

func (x *Setting) GetContent() []byte

func (*Setting) GetId

func (x *Setting) GetId() string

func (*Setting) GetName

func (x *Setting) GetName() string

func (*Setting) GetOwnerId

func (x *Setting) GetOwnerId() string

func (*Setting) GetService

func (x *Setting) GetService() string

func (*Setting) ProtoMessage

func (*Setting) ProtoMessage()

func (*Setting) ProtoReflect

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

func (*Setting) Reset

func (x *Setting) Reset()

func (*Setting) String

func (x *Setting) String() string

type SettingsList

type SettingsList struct {
	Data   []*Setting `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
	Count  uint64     `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	Limit  uint64     `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
	Offset uint64     `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"`
	// contains filtered or unexported fields
}

func (*SettingsList) Descriptor deprecated

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

Deprecated: Use SettingsList.ProtoReflect.Descriptor instead.

func (*SettingsList) GetCount

func (x *SettingsList) GetCount() uint64

func (*SettingsList) GetData

func (x *SettingsList) GetData() []*Setting

func (*SettingsList) GetLimit

func (x *SettingsList) GetLimit() uint64

func (*SettingsList) GetOffset

func (x *SettingsList) GetOffset() uint64

func (*SettingsList) ProtoMessage

func (*SettingsList) ProtoMessage()

func (*SettingsList) ProtoReflect

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

func (*SettingsList) Reset

func (x *SettingsList) Reset()

func (*SettingsList) String

func (x *SettingsList) String() string

type SettingsService

type SettingsService interface {
	Create(ctx context.Context, in *CreateRequest, opts ...client.CallOption) (*Setting, error)
	Update(ctx context.Context, in *UpdateRequest, opts ...client.CallOption) (*Setting, error)
	Upsert(ctx context.Context, in *UpsertRequest, opts ...client.CallOption) (*Setting, error)
	Get(ctx context.Context, in *GetRequest, opts ...client.CallOption) (*Setting, error)
	List(ctx context.Context, in *ListRequest, opts ...client.CallOption) (*SettingsList, error)
}

func NewSettingsService

func NewSettingsService(name string, c client.Client) SettingsService

type SettingsServiceHandler

type UpdateRequest

type UpdateRequest struct {
	Id      string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateRequest) Descriptor deprecated

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

Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.

func (*UpdateRequest) GetContent

func (x *UpdateRequest) GetContent() []byte

func (*UpdateRequest) GetId

func (x *UpdateRequest) GetId() string

func (*UpdateRequest) ProtoMessage

func (*UpdateRequest) ProtoMessage()

func (*UpdateRequest) ProtoReflect

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

func (*UpdateRequest) Reset

func (x *UpdateRequest) Reset()

func (*UpdateRequest) String

func (x *UpdateRequest) String() string

type UpsertRequest

type UpsertRequest struct {

	// Selectors
	Id      string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	OwnerId string `protobuf:"bytes,2,opt,name=ownerId,proto3" json:"ownerId,omitempty"` // For the Update Selector only
	Service string `protobuf:"bytes,3,opt,name=service,proto3" json:"service,omitempty"`
	Name    string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// Upsert content
	Content     []byte   `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"`
	RolesRead   []string `protobuf:"bytes,6,rep,name=rolesRead,proto3" json:"rolesRead,omitempty"`
	RolesUpdate []string `protobuf:"bytes,7,rep,name=rolesUpdate,proto3" json:"rolesUpdate,omitempty"`
	// contains filtered or unexported fields
}

func (*UpsertRequest) Descriptor deprecated

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

Deprecated: Use UpsertRequest.ProtoReflect.Descriptor instead.

func (*UpsertRequest) GetContent

func (x *UpsertRequest) GetContent() []byte

func (*UpsertRequest) GetId

func (x *UpsertRequest) GetId() string

func (*UpsertRequest) GetName

func (x *UpsertRequest) GetName() string

func (*UpsertRequest) GetOwnerId

func (x *UpsertRequest) GetOwnerId() string

func (*UpsertRequest) GetRolesRead

func (x *UpsertRequest) GetRolesRead() []string

func (*UpsertRequest) GetRolesUpdate

func (x *UpsertRequest) GetRolesUpdate() []string

func (*UpsertRequest) GetService

func (x *UpsertRequest) GetService() string

func (*UpsertRequest) ProtoMessage

func (*UpsertRequest) ProtoMessage()

func (*UpsertRequest) ProtoReflect

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

func (*UpsertRequest) Reset

func (x *UpsertRequest) Reset()

func (*UpsertRequest) String

func (x *UpsertRequest) String() string

Jump to

Keyboard shortcuts

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