github.com/keybase/client/go@v0.0.0-20240309051027-028f7c731f8b/libkb/gregor_stub.go (about)

     1  package libkb
     2  
     3  import (
     4  	"github.com/keybase/client/go/gregor"
     5  	"github.com/keybase/client/go/protocol/gregor1"
     6  	context "golang.org/x/net/context"
     7  )
     8  
     9  type nullGregorState struct {
    10  }
    11  
    12  func newNullGregorState() nullGregorState {
    13  	return nullGregorState{}
    14  }
    15  
    16  func (n nullGregorState) State(ctx context.Context) (gregor.State, error) {
    17  	return gregor1.State{}, nil
    18  }
    19  
    20  func (n nullGregorState) UpdateCategory(ctx context.Context, cat string, body []byte,
    21  	dtime gregor1.TimeOrOffset) (gregor1.MsgID, error) {
    22  	return gregor1.MsgID{}, nil
    23  }
    24  
    25  func (n nullGregorState) InjectItem(ctx context.Context, cat string, body []byte, dtime gregor1.TimeOrOffset) (gregor1.MsgID, error) {
    26  	return gregor1.MsgID{}, nil
    27  }
    28  
    29  func (n nullGregorState) DismissItem(ctx context.Context, cli gregor1.IncomingInterface,
    30  	id gregor.MsgID) error {
    31  	return nil
    32  }
    33  
    34  func (n nullGregorState) LocalDismissItem(ctx context.Context, id gregor.MsgID) error {
    35  	return nil
    36  }
    37  
    38  func (n nullGregorState) DismissCategory(ctx context.Context, cat gregor1.Category) error {
    39  	return nil
    40  }