Documentation ¶
Index ¶
- Variables
- func NewSettingsServiceEndpoints() []*api.Endpoint
- func RegisterSettingsServiceHandler(s server.Server, hdlr SettingsServiceHandler, opts ...server.HandlerOption) error
- type CreateRequest
- func (*CreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRequest) GetContent() []byte
- func (x *CreateRequest) GetName() string
- func (x *CreateRequest) GetOwnerId() string
- func (x *CreateRequest) GetRolesRead() []string
- func (x *CreateRequest) GetRolesUpdate() []string
- func (x *CreateRequest) GetService() string
- func (*CreateRequest) ProtoMessage()
- func (x *CreateRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRequest) Reset()
- func (x *CreateRequest) String() string
- type GetRequest
- func (*GetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRequest) GetId() string
- func (x *GetRequest) GetName() string
- func (x *GetRequest) GetOwnerId() string
- func (x *GetRequest) GetService() string
- func (*GetRequest) ProtoMessage()
- func (x *GetRequest) ProtoReflect() protoreflect.Message
- func (x *GetRequest) Reset()
- func (x *GetRequest) String() string
- type ListRequest
- func (*ListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRequest) GetId() string
- func (x *ListRequest) GetLimit() uint64
- func (x *ListRequest) GetName() string
- func (x *ListRequest) GetOffset() uint64
- func (x *ListRequest) GetOwnerId() string
- func (x *ListRequest) GetService() string
- func (*ListRequest) ProtoMessage()
- func (x *ListRequest) ProtoReflect() protoreflect.Message
- func (x *ListRequest) Reset()
- func (x *ListRequest) String() string
- type Setting
- func (*Setting) Descriptor() ([]byte, []int)deprecated
- func (x *Setting) GetContent() []byte
- func (x *Setting) GetId() string
- func (x *Setting) GetName() string
- func (x *Setting) GetOwnerId() string
- func (x *Setting) GetService() string
- func (*Setting) ProtoMessage()
- func (x *Setting) ProtoReflect() protoreflect.Message
- func (x *Setting) Reset()
- func (x *Setting) String() string
- type SettingsList
- func (*SettingsList) Descriptor() ([]byte, []int)deprecated
- func (x *SettingsList) GetCount() uint64
- func (x *SettingsList) GetData() []*Setting
- func (x *SettingsList) GetLimit() uint64
- func (x *SettingsList) GetOffset() uint64
- func (*SettingsList) ProtoMessage()
- func (x *SettingsList) ProtoReflect() protoreflect.Message
- func (x *SettingsList) Reset()
- func (x *SettingsList) String() string
- type SettingsService
- type SettingsServiceHandler
- type UpdateRequest
- func (*UpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRequest) GetContent() []byte
- func (x *UpdateRequest) GetId() string
- func (*UpdateRequest) ProtoMessage()
- func (x *UpdateRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRequest) Reset()
- func (x *UpdateRequest) String() string
- type UpsertRequest
- func (*UpsertRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpsertRequest) GetContent() []byte
- func (x *UpsertRequest) GetId() string
- func (x *UpsertRequest) GetName() string
- func (x *UpsertRequest) GetOwnerId() string
- func (x *UpsertRequest) GetRolesRead() []string
- func (x *UpsertRequest) GetRolesUpdate() []string
- func (x *UpsertRequest) GetService() string
- func (*UpsertRequest) ProtoMessage()
- func (x *UpsertRequest) ProtoReflect() protoreflect.Message
- func (x *UpsertRequest) Reset()
- func (x *UpsertRequest) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_settingspb_proto protoreflect.FileDescriptor
Functions ¶
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) ProtoReflect ¶
func (x *Setting) ProtoReflect() protoreflect.Message
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 SettingsServiceHandler interface { Create(context.Context, *CreateRequest, *Setting) error Update(context.Context, *UpdateRequest, *Setting) error Upsert(context.Context, *UpsertRequest, *Setting) error Get(context.Context, *GetRequest, *Setting) error List(context.Context, *ListRequest, *SettingsList) error }
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
Click to show internal directories.
Click to hide internal directories.