push

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ListPushesRequest_OrderBy_name = map[int32]string{
		0: "DEFAULT",
		1: "NAME",
		2: "CREATED_AT",
		3: "UPDATED_AT",
	}
	ListPushesRequest_OrderBy_value = map[string]int32{
		"DEFAULT":    0,
		"NAME":       1,
		"CREATED_AT": 2,
		"UPDATED_AT": 3,
	}
)

Enum value maps for ListPushesRequest_OrderBy.

View Source
var (
	ListPushesRequest_OrderDirection_name = map[int32]string{
		0: "ASC",
		1: "DESC",
	}
	ListPushesRequest_OrderDirection_value = map[string]int32{
		"ASC":  0,
		"DESC": 1,
	}
)

Enum value maps for ListPushesRequest_OrderDirection.

View Source
var File_proto_push_command_proto protoreflect.FileDescriptor
View Source
var File_proto_push_push_proto protoreflect.FileDescriptor
View Source
var File_proto_push_service_proto protoreflect.FileDescriptor

Functions

func RegisterPushServiceServer

func RegisterPushServiceServer(s *grpc.Server, srv PushServiceServer)

Types

type AddPushTagsCommand

type AddPushTagsCommand struct {
	Tags []string `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags"`
	// contains filtered or unexported fields
}

func (*AddPushTagsCommand) Descriptor deprecated

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

Deprecated: Use AddPushTagsCommand.ProtoReflect.Descriptor instead.

func (*AddPushTagsCommand) GetTags

func (x *AddPushTagsCommand) GetTags() []string

func (*AddPushTagsCommand) ProtoMessage

func (*AddPushTagsCommand) ProtoMessage()

func (*AddPushTagsCommand) ProtoReflect

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

func (*AddPushTagsCommand) Reset

func (x *AddPushTagsCommand) Reset()

func (*AddPushTagsCommand) String

func (x *AddPushTagsCommand) String() string

type CreatePushCommand

type CreatePushCommand struct {
	FcmApiKey string   `protobuf:"bytes,1,opt,name=fcm_api_key,json=fcmApiKey,proto3" json:"fcm_api_key"`
	Tags      []string `protobuf:"bytes,2,rep,name=tags,proto3" json:"tags"`
	Name      string   `protobuf:"bytes,3,opt,name=name,proto3" json:"name"`
	// contains filtered or unexported fields
}

func (*CreatePushCommand) Descriptor deprecated

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

Deprecated: Use CreatePushCommand.ProtoReflect.Descriptor instead.

func (*CreatePushCommand) GetFcmApiKey

func (x *CreatePushCommand) GetFcmApiKey() string

func (*CreatePushCommand) GetName

func (x *CreatePushCommand) GetName() string

func (*CreatePushCommand) GetTags

func (x *CreatePushCommand) GetTags() []string

func (*CreatePushCommand) ProtoMessage

func (*CreatePushCommand) ProtoMessage()

func (*CreatePushCommand) ProtoReflect

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

func (*CreatePushCommand) Reset

func (x *CreatePushCommand) Reset()

func (*CreatePushCommand) String

func (x *CreatePushCommand) String() string

type CreatePushRequest

type CreatePushRequest struct {
	EnvironmentNamespace string             `protobuf:"bytes,1,opt,name=environment_namespace,json=environmentNamespace,proto3" json:"environment_namespace"`
	Command              *CreatePushCommand `protobuf:"bytes,2,opt,name=command,proto3" json:"command"`
	// contains filtered or unexported fields
}

func (*CreatePushRequest) Descriptor deprecated

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

Deprecated: Use CreatePushRequest.ProtoReflect.Descriptor instead.

func (*CreatePushRequest) GetCommand

func (x *CreatePushRequest) GetCommand() *CreatePushCommand

func (*CreatePushRequest) GetEnvironmentNamespace

func (x *CreatePushRequest) GetEnvironmentNamespace() string

func (*CreatePushRequest) ProtoMessage

func (*CreatePushRequest) ProtoMessage()

func (*CreatePushRequest) ProtoReflect

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

func (*CreatePushRequest) Reset

func (x *CreatePushRequest) Reset()

func (*CreatePushRequest) String

func (x *CreatePushRequest) String() string

type CreatePushResponse

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

func (*CreatePushResponse) Descriptor deprecated

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

Deprecated: Use CreatePushResponse.ProtoReflect.Descriptor instead.

func (*CreatePushResponse) ProtoMessage

func (*CreatePushResponse) ProtoMessage()

func (*CreatePushResponse) ProtoReflect

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

func (*CreatePushResponse) Reset

func (x *CreatePushResponse) Reset()

func (*CreatePushResponse) String

func (x *CreatePushResponse) String() string

type DeletePushCommand

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

func (*DeletePushCommand) Descriptor deprecated

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

Deprecated: Use DeletePushCommand.ProtoReflect.Descriptor instead.

func (*DeletePushCommand) ProtoMessage

func (*DeletePushCommand) ProtoMessage()

func (*DeletePushCommand) ProtoReflect

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

func (*DeletePushCommand) Reset

func (x *DeletePushCommand) Reset()

func (*DeletePushCommand) String

func (x *DeletePushCommand) String() string

type DeletePushRequest

type DeletePushRequest struct {
	EnvironmentNamespace string             `protobuf:"bytes,1,opt,name=environment_namespace,json=environmentNamespace,proto3" json:"environment_namespace"`
	Id                   string             `protobuf:"bytes,2,opt,name=id,proto3" json:"id"`
	Command              *DeletePushCommand `protobuf:"bytes,3,opt,name=command,proto3" json:"command"`
	// contains filtered or unexported fields
}

func (*DeletePushRequest) Descriptor deprecated

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

Deprecated: Use DeletePushRequest.ProtoReflect.Descriptor instead.

func (*DeletePushRequest) GetCommand

func (x *DeletePushRequest) GetCommand() *DeletePushCommand

func (*DeletePushRequest) GetEnvironmentNamespace

func (x *DeletePushRequest) GetEnvironmentNamespace() string

func (*DeletePushRequest) GetId

func (x *DeletePushRequest) GetId() string

func (*DeletePushRequest) ProtoMessage

func (*DeletePushRequest) ProtoMessage()

func (*DeletePushRequest) ProtoReflect

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

func (*DeletePushRequest) Reset

func (x *DeletePushRequest) Reset()

func (*DeletePushRequest) String

func (x *DeletePushRequest) String() string

type DeletePushResponse

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

func (*DeletePushResponse) Descriptor deprecated

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

Deprecated: Use DeletePushResponse.ProtoReflect.Descriptor instead.

func (*DeletePushResponse) ProtoMessage

func (*DeletePushResponse) ProtoMessage()

func (*DeletePushResponse) ProtoReflect

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

func (*DeletePushResponse) Reset

func (x *DeletePushResponse) Reset()

func (*DeletePushResponse) String

func (x *DeletePushResponse) String() string

type DeletePushTagsCommand

type DeletePushTagsCommand struct {
	Tags []string `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags"`
	// contains filtered or unexported fields
}

func (*DeletePushTagsCommand) Descriptor deprecated

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

Deprecated: Use DeletePushTagsCommand.ProtoReflect.Descriptor instead.

func (*DeletePushTagsCommand) GetTags

func (x *DeletePushTagsCommand) GetTags() []string

func (*DeletePushTagsCommand) ProtoMessage

func (*DeletePushTagsCommand) ProtoMessage()

func (*DeletePushTagsCommand) ProtoReflect

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

func (*DeletePushTagsCommand) Reset

func (x *DeletePushTagsCommand) Reset()

func (*DeletePushTagsCommand) String

func (x *DeletePushTagsCommand) String() string

type ListPushesRequest

type ListPushesRequest struct {
	EnvironmentNamespace string                           `protobuf:"bytes,1,opt,name=environment_namespace,json=environmentNamespace,proto3" json:"environment_namespace"`
	PageSize             int64                            `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size"`
	Cursor               string                           `protobuf:"bytes,3,opt,name=cursor,proto3" json:"cursor"`
	OrderBy              ListPushesRequest_OrderBy        `protobuf:"varint,4,opt,name=order_by,json=orderBy,proto3,enum=bucketeer.push.ListPushesRequest_OrderBy" json:"order_by"`
	OrderDirection       ListPushesRequest_OrderDirection `` /* 147-byte string literal not displayed */
	SearchKeyword        string                           `protobuf:"bytes,6,opt,name=search_keyword,json=searchKeyword,proto3" json:"search_keyword"`
	// contains filtered or unexported fields
}

func (*ListPushesRequest) Descriptor deprecated

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

Deprecated: Use ListPushesRequest.ProtoReflect.Descriptor instead.

func (*ListPushesRequest) GetCursor

func (x *ListPushesRequest) GetCursor() string

func (*ListPushesRequest) GetEnvironmentNamespace

func (x *ListPushesRequest) GetEnvironmentNamespace() string

func (*ListPushesRequest) GetOrderBy

func (*ListPushesRequest) GetOrderDirection

func (x *ListPushesRequest) GetOrderDirection() ListPushesRequest_OrderDirection

func (*ListPushesRequest) GetPageSize

func (x *ListPushesRequest) GetPageSize() int64

func (*ListPushesRequest) GetSearchKeyword

func (x *ListPushesRequest) GetSearchKeyword() string

func (*ListPushesRequest) ProtoMessage

func (*ListPushesRequest) ProtoMessage()

func (*ListPushesRequest) ProtoReflect

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

func (*ListPushesRequest) Reset

func (x *ListPushesRequest) Reset()

func (*ListPushesRequest) String

func (x *ListPushesRequest) String() string

type ListPushesRequest_OrderBy

type ListPushesRequest_OrderBy int32
const (
	ListPushesRequest_DEFAULT    ListPushesRequest_OrderBy = 0
	ListPushesRequest_NAME       ListPushesRequest_OrderBy = 1
	ListPushesRequest_CREATED_AT ListPushesRequest_OrderBy = 2
	ListPushesRequest_UPDATED_AT ListPushesRequest_OrderBy = 3
)

func (ListPushesRequest_OrderBy) Descriptor

func (ListPushesRequest_OrderBy) Enum

func (ListPushesRequest_OrderBy) EnumDescriptor deprecated

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

Deprecated: Use ListPushesRequest_OrderBy.Descriptor instead.

func (ListPushesRequest_OrderBy) Number

func (ListPushesRequest_OrderBy) String

func (x ListPushesRequest_OrderBy) String() string

func (ListPushesRequest_OrderBy) Type

type ListPushesRequest_OrderDirection

type ListPushesRequest_OrderDirection int32
const (
	ListPushesRequest_ASC  ListPushesRequest_OrderDirection = 0
	ListPushesRequest_DESC ListPushesRequest_OrderDirection = 1
)

func (ListPushesRequest_OrderDirection) Descriptor

func (ListPushesRequest_OrderDirection) Enum

func (ListPushesRequest_OrderDirection) EnumDescriptor deprecated

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

Deprecated: Use ListPushesRequest_OrderDirection.Descriptor instead.

func (ListPushesRequest_OrderDirection) Number

func (ListPushesRequest_OrderDirection) String

func (ListPushesRequest_OrderDirection) Type

type ListPushesResponse

type ListPushesResponse struct {
	Pushes     []*Push `protobuf:"bytes,1,rep,name=pushes,proto3" json:"pushes"`
	Cursor     string  `protobuf:"bytes,2,opt,name=cursor,proto3" json:"cursor"`
	TotalCount int64   `protobuf:"varint,3,opt,name=total_count,json=totalCount,proto3" json:"total_count"`
	// contains filtered or unexported fields
}

func (*ListPushesResponse) Descriptor deprecated

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

Deprecated: Use ListPushesResponse.ProtoReflect.Descriptor instead.

func (*ListPushesResponse) GetCursor

func (x *ListPushesResponse) GetCursor() string

func (*ListPushesResponse) GetPushes

func (x *ListPushesResponse) GetPushes() []*Push

func (*ListPushesResponse) GetTotalCount

func (x *ListPushesResponse) GetTotalCount() int64

func (*ListPushesResponse) ProtoMessage

func (*ListPushesResponse) ProtoMessage()

func (*ListPushesResponse) ProtoReflect

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

func (*ListPushesResponse) Reset

func (x *ListPushesResponse) Reset()

func (*ListPushesResponse) String

func (x *ListPushesResponse) String() string

type Push

type Push struct {
	Id        string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id"`
	FcmApiKey string   `protobuf:"bytes,2,opt,name=fcm_api_key,json=fcmApiKey,proto3" json:"fcm_api_key"`
	Tags      []string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags"`
	Deleted   bool     `protobuf:"varint,4,opt,name=deleted,proto3" json:"deleted"`
	Name      string   `protobuf:"bytes,5,opt,name=name,proto3" json:"name"`
	CreatedAt int64    `protobuf:"varint,6,opt,name=created_at,json=createdAt,proto3" json:"created_at"`
	UpdatedAt int64    `protobuf:"varint,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at"`
	// contains filtered or unexported fields
}

func (*Push) Descriptor deprecated

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

Deprecated: Use Push.ProtoReflect.Descriptor instead.

func (*Push) GetCreatedAt

func (x *Push) GetCreatedAt() int64

func (*Push) GetDeleted

func (x *Push) GetDeleted() bool

func (*Push) GetFcmApiKey

func (x *Push) GetFcmApiKey() string

func (*Push) GetId

func (x *Push) GetId() string

func (*Push) GetName

func (x *Push) GetName() string

func (*Push) GetTags

func (x *Push) GetTags() []string

func (*Push) GetUpdatedAt

func (x *Push) GetUpdatedAt() int64

func (*Push) ProtoMessage

func (*Push) ProtoMessage()

func (*Push) ProtoReflect

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

func (*Push) Reset

func (x *Push) Reset()

func (*Push) String

func (x *Push) String() string

type PushServiceClient

type PushServiceClient interface {
	ListPushes(ctx context.Context, in *ListPushesRequest, opts ...grpc.CallOption) (*ListPushesResponse, error)
	CreatePush(ctx context.Context, in *CreatePushRequest, opts ...grpc.CallOption) (*CreatePushResponse, error)
	DeletePush(ctx context.Context, in *DeletePushRequest, opts ...grpc.CallOption) (*DeletePushResponse, error)
	UpdatePush(ctx context.Context, in *UpdatePushRequest, opts ...grpc.CallOption) (*UpdatePushResponse, error)
}

PushServiceClient is the client API for PushService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type PushServiceServer

PushServiceServer is the server API for PushService service.

type RenamePushCommand

type RenamePushCommand struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name"`
	// contains filtered or unexported fields
}

func (*RenamePushCommand) Descriptor deprecated

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

Deprecated: Use RenamePushCommand.ProtoReflect.Descriptor instead.

func (*RenamePushCommand) GetName

func (x *RenamePushCommand) GetName() string

func (*RenamePushCommand) ProtoMessage

func (*RenamePushCommand) ProtoMessage()

func (*RenamePushCommand) ProtoReflect

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

func (*RenamePushCommand) Reset

func (x *RenamePushCommand) Reset()

func (*RenamePushCommand) String

func (x *RenamePushCommand) String() string

type UnimplementedPushServiceServer

type UnimplementedPushServiceServer struct {
}

UnimplementedPushServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedPushServiceServer) CreatePush

func (*UnimplementedPushServiceServer) DeletePush

func (*UnimplementedPushServiceServer) ListPushes

func (*UnimplementedPushServiceServer) UpdatePush

type UpdatePushRequest

type UpdatePushRequest struct {
	EnvironmentNamespace  string                 `protobuf:"bytes,1,opt,name=environment_namespace,json=environmentNamespace,proto3" json:"environment_namespace"`
	Id                    string                 `protobuf:"bytes,2,opt,name=id,proto3" json:"id"`
	AddPushTagsCommand    *AddPushTagsCommand    `protobuf:"bytes,3,opt,name=add_push_tags_command,json=addPushTagsCommand,proto3" json:"add_push_tags_command"`
	DeletePushTagsCommand *DeletePushTagsCommand `protobuf:"bytes,4,opt,name=delete_push_tags_command,json=deletePushTagsCommand,proto3" json:"delete_push_tags_command"`
	RenamePushCommand     *RenamePushCommand     `protobuf:"bytes,5,opt,name=rename_push_command,json=renamePushCommand,proto3" json:"rename_push_command"`
	// contains filtered or unexported fields
}

func (*UpdatePushRequest) Descriptor deprecated

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

Deprecated: Use UpdatePushRequest.ProtoReflect.Descriptor instead.

func (*UpdatePushRequest) GetAddPushTagsCommand

func (x *UpdatePushRequest) GetAddPushTagsCommand() *AddPushTagsCommand

func (*UpdatePushRequest) GetDeletePushTagsCommand

func (x *UpdatePushRequest) GetDeletePushTagsCommand() *DeletePushTagsCommand

func (*UpdatePushRequest) GetEnvironmentNamespace

func (x *UpdatePushRequest) GetEnvironmentNamespace() string

func (*UpdatePushRequest) GetId

func (x *UpdatePushRequest) GetId() string

func (*UpdatePushRequest) GetRenamePushCommand

func (x *UpdatePushRequest) GetRenamePushCommand() *RenamePushCommand

func (*UpdatePushRequest) ProtoMessage

func (*UpdatePushRequest) ProtoMessage()

func (*UpdatePushRequest) ProtoReflect

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

func (*UpdatePushRequest) Reset

func (x *UpdatePushRequest) Reset()

func (*UpdatePushRequest) String

func (x *UpdatePushRequest) String() string

type UpdatePushResponse

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

func (*UpdatePushResponse) Descriptor deprecated

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

Deprecated: Use UpdatePushResponse.ProtoReflect.Descriptor instead.

func (*UpdatePushResponse) ProtoMessage

func (*UpdatePushResponse) ProtoMessage()

func (*UpdatePushResponse) ProtoReflect

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

func (*UpdatePushResponse) Reset

func (x *UpdatePushResponse) Reset()

func (*UpdatePushResponse) String

func (x *UpdatePushResponse) String() string

Jump to

Keyboard shortcuts

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