Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerHandler ¶
type ServerHandler interface { pb.ShrlsServer pb.FileUploadServer SetState(ServerState) SetStorage(ServerStorage) }
type ServerState ¶
type ServerState interface { GetShrl(context.Context, *pb.Ref_ShortURL) (*pb.ShortURL, error) GetShrls(context.Context, *pb.Ref_ShortURL) ([]*pb.ShortURL, error) CreateShrl(context.Context, *pb.ShortURL) (*pb.ShortURL, error) ListShrls(ctx context.Context, search *string, count *int64, page *int64) ([]*pb.ShortURL, int64, error) UpdateShrl(context.Context, *pb.ShortURL) (*pb.ShortURL, error) DeleteShrl(context.Context, *pb.Ref_ShortURL) error }
Click to show internal directories.
Click to hide internal directories.