Commit 762bee9a authored by Andrei Mihu's avatar Andrei Mihu
Browse files

Add cacheable cursor to channel message listings.

parent 51715c8a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4,6 +4,9 @@ All notable changes to this project are documented below.
The format is based on [keep a changelog](http://keepachangelog.com) and this project uses [semantic versioning](http://semver.org).

## [Unreleased]
### Added
- Add cacheable cursor to channel message listings.

### Changed
- Make metrics prefix configurable, default to fixed value.
- Build with Go 1.15.5 release.
+3 −3
Original line number Diff line number Diff line
@@ -18,19 +18,19 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.25.0
// 	protoc        v3.13.0
// 	protoc        v3.14.0
// source: apigrpc.proto

package apigrpc

import (
	proto "github.com/golang/protobuf/proto"
	empty "github.com/golang/protobuf/ptypes/empty"
	_ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options"
	api "github.com/heroiclabs/nakama-common/api"
	_ "google.golang.org/genproto/googleapis/api/annotations"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	emptypb "google.golang.org/protobuf/types/known/emptypb"
	reflect "reflect"
)

@@ -617,7 +617,7 @@ var file_apigrpc_proto_goTypes = []interface{}{
	(*api.DeleteNotificationsRequest)(nil),               // 17: nakama.api.DeleteNotificationsRequest
	(*api.DeleteStorageObjectsRequest)(nil),              // 18: nakama.api.DeleteStorageObjectsRequest
	(*api.Event)(nil),                                    // 19: nakama.api.Event
	(*empty.Empty)(nil),                                  // 20: google.protobuf.Empty
	(*emptypb.Empty)(nil),                                // 20: google.protobuf.Empty
	(*api.GetUsersRequest)(nil),                          // 21: nakama.api.GetUsersRequest
	(*api.ImportFacebookFriendsRequest)(nil),             // 22: nakama.api.ImportFacebookFriendsRequest
	(*api.JoinGroupRequest)(nil),                         // 23: nakama.api.JoinGroupRequest
+5 −5
Original line number Diff line number Diff line
@@ -13,7 +13,6 @@ import (
	"io"
	"net/http"

	"github.com/golang/protobuf/ptypes/empty"
	"github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
	"github.com/grpc-ecosystem/grpc-gateway/v2/utilities"
	"github.com/heroiclabs/nakama-common/api"
@@ -23,6 +22,7 @@ import (
	"google.golang.org/grpc/metadata"
	"google.golang.org/grpc/status"
	"google.golang.org/protobuf/proto"
	"google.golang.org/protobuf/types/known/emptypb"
)

// Suppress "imported and not used" errors
@@ -992,7 +992,7 @@ func local_request_Nakama_Event_0(ctx context.Context, marshaler runtime.Marshal
}

func request_Nakama_GetAccount_0(ctx context.Context, marshaler runtime.Marshaler, client NakamaClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
	var protoReq empty.Empty
	var protoReq emptypb.Empty
	var metadata runtime.ServerMetadata

	msg, err := client.GetAccount(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
@@ -1001,7 +1001,7 @@ func request_Nakama_GetAccount_0(ctx context.Context, marshaler runtime.Marshale
}

func local_request_Nakama_GetAccount_0(ctx context.Context, marshaler runtime.Marshaler, server NakamaServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
	var protoReq empty.Empty
	var protoReq emptypb.Empty
	var metadata runtime.ServerMetadata

	msg, err := server.GetAccount(ctx, &protoReq)
@@ -1046,7 +1046,7 @@ func local_request_Nakama_GetUsers_0(ctx context.Context, marshaler runtime.Mars
}

func request_Nakama_Healthcheck_0(ctx context.Context, marshaler runtime.Marshaler, client NakamaClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
	var protoReq empty.Empty
	var protoReq emptypb.Empty
	var metadata runtime.ServerMetadata

	msg, err := client.Healthcheck(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
@@ -1055,7 +1055,7 @@ func request_Nakama_Healthcheck_0(ctx context.Context, marshaler runtime.Marshal
}

func local_request_Nakama_Healthcheck_0(ctx context.Context, marshaler runtime.Marshaler, server NakamaServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
	var protoReq empty.Empty
	var protoReq emptypb.Empty
	var metadata runtime.ServerMetadata

	msg, err := server.Healthcheck(ctx, &protoReq)
+5 −1
Original line number Diff line number Diff line
@@ -3351,11 +3351,15 @@
        },
        "nextCursor": {
          "type": "string",
          "description": "The cursor to send when retireving the next page, if any."
          "description": "The cursor to send when retrieving the next page, if any."
        },
        "prevCursor": {
          "type": "string",
          "description": "The cursor to send when retrieving the previous page, if any."
        },
        "cacheableCursor": {
          "type": "string",
          "description": "Cacheable cursor to list newer messages. Durable and designed to be stored, unlike next/prev cursors."
        }
      },
      "description": "A list of channel messages, usually a result of a list operation."
+199 −199

File changed.

Preview size limit exceeded, changes collapsed.

Loading